LCOV - code coverage report
Current view: top level - extensions/client - ListChangesOption.java (source / functions) Hit Total Coverage
Test: _coverage_report.dat Lines: 30 30 100.0 %
Date: 2022-11-19 15:00:39 Functions: 3 3 100.0 %

          Line data    Source code
       1             : // Copyright (C) 2012 The Android Open Source Project
       2             : //
       3             : // Licensed under the Apache License, Version 2.0 (the "License");
       4             : // you may not use this file except in compliance with the License.
       5             : // You may obtain a copy of the License at
       6             : //
       7             : // http://www.apache.org/licenses/LICENSE-2.0
       8             : //
       9             : // Unless required by applicable law or agreed to in writing, software
      10             : // distributed under the License is distributed on an "AS IS" BASIS,
      11             : // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      12             : // See the License for the specific language governing permissions and
      13             : // limitations under the License.
      14             : 
      15             : package com.google.gerrit.extensions.client;
      16             : 
      17             : /** Output options available for retrieval of change details. */
      18         152 : public enum ListChangesOption implements ListOption {
      19         152 :   LABELS(0),
      20         152 :   DETAILED_LABELS(8),
      21             : 
      22             :   /** Return information on the current patch set of the change. */
      23         152 :   CURRENT_REVISION(1),
      24         152 :   ALL_REVISIONS(2),
      25             : 
      26             :   /** If revisions are included, parse the commit object. */
      27         152 :   CURRENT_COMMIT(3),
      28         152 :   ALL_COMMITS(4),
      29             : 
      30             :   /** If a patch set is included, include the files of the patch set. */
      31         152 :   CURRENT_FILES(5),
      32         152 :   ALL_FILES(6),
      33             : 
      34             :   /** If accounts are included, include detailed account info. */
      35         152 :   DETAILED_ACCOUNTS(7),
      36             : 
      37             :   /** Include messages associated with the change. */
      38         152 :   MESSAGES(9),
      39             : 
      40             :   /** Include allowed actions client could perform. */
      41         152 :   CURRENT_ACTIONS(10),
      42             : 
      43             :   /** Set the reviewed boolean for the caller. */
      44         152 :   REVIEWED(11),
      45             : 
      46             :   /** Not used anymore, kept for backward compatibility */
      47         152 :   @Deprecated
      48             :   DRAFT_COMMENTS(12),
      49             : 
      50             :   /** Include download commands for the caller. */
      51         152 :   DOWNLOAD_COMMANDS(13),
      52             : 
      53             :   /** Include patch set weblinks. */
      54         152 :   WEB_LINKS(14),
      55             : 
      56             :   /** Include consistency check results. */
      57         152 :   CHECK(15),
      58             : 
      59             :   /** Include allowed change actions client could perform. */
      60         152 :   CHANGE_ACTIONS(16),
      61             : 
      62             :   /** Include a copy of commit messages including review footers. */
      63         152 :   COMMIT_FOOTERS(17),
      64             : 
      65             :   /** Include push certificate information along with any patch sets. */
      66         152 :   PUSH_CERTIFICATES(18),
      67             : 
      68             :   /** Include change's reviewer updates. */
      69         152 :   REVIEWER_UPDATES(19),
      70             : 
      71             :   /** Set the submittable boolean. */
      72         152 :   SUBMITTABLE(20),
      73             : 
      74             :   /** If tracking Ids are included, include detailed tracking Ids info. */
      75         152 :   TRACKING_IDS(21),
      76             : 
      77             :   /**
      78             :    * Use {@code gerrit.config} instead to turn this off for your instance. See {@code
      79             :    * change.mergeabilityComputationBehavior}.
      80             :    */
      81         152 :   @Deprecated
      82             :   SKIP_MERGEABLE(22),
      83             : 
      84             :   /**
      85             :    * Skip diffstat computation that compute the insertions field (number of lines inserted) and
      86             :    * deletions field (number of lines deleted)
      87             :    */
      88         152 :   SKIP_DIFFSTAT(23),
      89             : 
      90             :   /** Include the evaluated submit requirements for the caller. */
      91         152 :   SUBMIT_REQUIREMENTS(24);
      92             : 
      93             :   private final int value;
      94             : 
      95         152 :   ListChangesOption(int v) {
      96         152 :     this.value = v;
      97         152 :   }
      98             : 
      99             :   @Override
     100             :   public int getValue() {
     101           2 :     return value;
     102             :   }
     103             : }

Generated by: LCOV version 1.16+git.20220603.dfeb750