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

          Line data    Source code
       1             : // Copyright (C) 2016 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.common;
      16             : 
      17             : import com.google.gerrit.extensions.api.accounts.AccountInput;
      18             : import com.google.gerrit.extensions.api.changes.ApplyPatchInput;
      19             : import com.google.gerrit.extensions.api.changes.NotifyHandling;
      20             : import com.google.gerrit.extensions.api.changes.NotifyInfo;
      21             : import com.google.gerrit.extensions.api.changes.RecipientType;
      22             : import com.google.gerrit.extensions.client.ChangeStatus;
      23             : import java.util.Map;
      24             : 
      25             : public class ChangeInput {
      26             :   public String project;
      27             :   public String branch;
      28             :   public String subject;
      29             : 
      30             :   public String topic;
      31             :   public ChangeStatus status;
      32             :   public Boolean isPrivate;
      33             :   public Boolean workInProgress;
      34             :   public String baseChange;
      35             :   public String baseCommit;
      36             :   public Boolean newBranch;
      37             :   public Map<String, String> validationOptions;
      38             :   public MergeInput merge;
      39             :   public ApplyPatchInput patch;
      40             : 
      41             :   public AccountInput author;
      42             : 
      43          20 :   public ChangeInput() {}
      44             : 
      45             :   /**
      46             :    * Creates a new {@code ChangeInput} with the minimal attributes required for a successful
      47             :    * creation of a new change.
      48             :    *
      49             :    * @param project the project name for the new change
      50             :    * @param branch the branch name for the new change
      51             :    * @param subject the subject (commit message) for the new change
      52             :    */
      53          16 :   public ChangeInput(String project, String branch, String subject) {
      54          16 :     this.project = project;
      55          16 :     this.branch = branch;
      56          16 :     this.subject = subject;
      57          16 :   }
      58             : 
      59             :   /** Who to send email notifications to after change is created. */
      60          32 :   public NotifyHandling notify = NotifyHandling.ALL;
      61             : 
      62             :   public Map<RecipientType, NotifyInfo> notifyDetails;
      63             : }

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