LCOV - code coverage report
Current view: top level - server/experiments - ExperimentFeaturesConstants.java (source / functions) Hit Total Coverage
Test: _coverage_report.dat Lines: 6 7 85.7 %
Date: 2022-11-19 15:00:39 Functions: 1 2 50.0 %

          Line data    Source code
       1             : // Copyright (C) 2021 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.server.experiments;
      16             : 
      17             : import com.google.common.collect.ImmutableSet;
      18             : 
      19             : /** Constants for Gerrit {@link ExperimentFeatures} */
      20           0 : public class ExperimentFeaturesConstants {
      21             : 
      22             :   /** Features that are known experiments and can be referenced in the code. */
      23         150 :   public static String UI_FEATURE_PATCHSET_COMMENTS = "UiFeature__patchset_comments";
      24             : 
      25         150 :   public static String UI_FEATURE_SUBMIT_REQUIREMENTS_UI = "UiFeature__submit_requirements_ui";
      26             : 
      27         150 :   public static String GERRIT_BACKEND_REQUEST_FEATURE_REMOVE_REVISION_ETAG =
      28             :       "GerritBackendRequestFeature__remove_revision_etag";
      29             : 
      30         150 :   public static String GERRIT_BACKEND_FEATURE_ATTACH_NONCE_TO_DOCUMENTATION =
      31             :       "GerritBackendFeature__attach_nonce_to_documentation";
      32             : 
      33             :   /** Features, enabled by default in the current release. */
      34         150 :   public static final ImmutableSet<String> DEFAULT_ENABLED_FEATURES =
      35         150 :       ImmutableSet.of(UI_FEATURE_PATCHSET_COMMENTS, UI_FEATURE_SUBMIT_REQUIREMENTS_UI);
      36             : }

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