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

          Line data    Source code
       1             : // Copyright (C) 2020 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.acceptance.testsuite.change;
      16             : 
      17             : import com.google.auto.value.AutoValue;
      18             : import com.google.gerrit.common.Nullable;
      19             : import java.util.Optional;
      20             : 
      21             : /** Representation of a human comment used for testing purposes. */
      22             : @AutoValue
      23           2 : public abstract class TestHumanComment {
      24             : 
      25             :   /** The UUID of the comment. Should be unique. */
      26             :   public abstract String uuid();
      27             : 
      28             :   /** UUID of another comment to which this comment is a reply. */
      29             :   public abstract Optional<String> parentUuid();
      30             : 
      31             :   /** Tag of a comment. */
      32             :   public abstract Optional<String> tag();
      33             : 
      34             :   /** Unresolved state of a comment. */
      35             :   public abstract boolean unresolved();
      36             : 
      37             :   static Builder builder() {
      38           2 :     return new AutoValue_TestHumanComment.Builder();
      39             :   }
      40             : 
      41             :   @AutoValue.Builder
      42           2 :   abstract static class Builder {
      43             :     abstract Builder uuid(String uuid);
      44             : 
      45             :     abstract Builder parentUuid(@Nullable String parentUuid);
      46             : 
      47             :     abstract Builder tag(@Nullable String tag);
      48             : 
      49             :     abstract Builder unresolved(boolean unresolved);
      50             : 
      51             :     abstract TestHumanComment build();
      52             :   }
      53             : }

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