LCOV - code coverage report
Current view: top level - extensions/common - FetchInfo.java (source / functions) Hit Total Coverage
Test: _coverage_report.dat Lines: 0 12 0.0 %
Date: 2022-11-19 15:00:39 Functions: 0 4 0.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.common;
      16             : 
      17             : import java.util.Map;
      18             : import java.util.Objects;
      19             : 
      20             : public class FetchInfo {
      21             :   public String url;
      22             :   public String ref;
      23             :   public Map<String, String> commands;
      24             : 
      25           0 :   public FetchInfo(String url, String ref) {
      26           0 :     this.url = url;
      27           0 :     this.ref = ref;
      28           0 :   }
      29             : 
      30             :   @Override
      31             :   public boolean equals(Object o) {
      32           0 :     if (o instanceof FetchInfo) {
      33           0 :       FetchInfo fetchInfo = (FetchInfo) o;
      34           0 :       return Objects.equals(url, fetchInfo.url)
      35           0 :           && Objects.equals(ref, fetchInfo.ref)
      36           0 :           && Objects.equals(commands, fetchInfo.commands);
      37             :     }
      38           0 :     return false;
      39             :   }
      40             : 
      41             :   @Override
      42             :   public int hashCode() {
      43           0 :     return Objects.hash(url, ref, commands);
      44             :   }
      45             : 
      46           0 :   protected FetchInfo() {}
      47             : }

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