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

          Line data    Source code
       1             : // Copyright (C) 2014 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             : /* This class is stored in Git config file. */
      18         151 : public class EditPreferencesInfo {
      19             :   public Integer tabSize;
      20             :   public Integer lineLength;
      21             :   public Integer indentUnit;
      22             :   public Integer cursorBlinkRate;
      23             :   public Boolean hideTopMenu;
      24             :   public Boolean showTabs;
      25             :   public Boolean showWhitespaceErrors;
      26             :   public Boolean syntaxHighlighting;
      27             :   public Boolean hideLineNumbers;
      28             :   public Boolean matchBrackets;
      29             :   public Boolean lineWrapping;
      30             :   public Boolean indentWithTabs;
      31             :   public Boolean autoCloseBrackets;
      32             :   public Boolean showBase;
      33             : 
      34             :   public static EditPreferencesInfo defaults() {
      35         151 :     EditPreferencesInfo i = new EditPreferencesInfo();
      36         151 :     i.tabSize = 8;
      37         151 :     i.lineLength = 100;
      38         151 :     i.indentUnit = 2;
      39         151 :     i.cursorBlinkRate = 0;
      40         151 :     i.hideTopMenu = false;
      41         151 :     i.showTabs = true;
      42         151 :     i.showWhitespaceErrors = false;
      43         151 :     i.syntaxHighlighting = true;
      44         151 :     i.hideLineNumbers = false;
      45         151 :     i.matchBrackets = true;
      46         151 :     i.lineWrapping = false;
      47         151 :     i.indentWithTabs = false;
      48         151 :     i.autoCloseBrackets = false;
      49         151 :     i.showBase = false;
      50         151 :     return i;
      51             :   }
      52             : }

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