LCOV - code coverage report
Current view: top level - src/esys/repo/libgit2 - guardequal_libgit2.cpp (source / functions) Hit Total Coverage
Test: esysrepo_coverage.info Lines: 0 3 0.0 %
Date: 2026-08-01 10:43:40 Functions: 0 1 0.0 %

          Line data    Source code
       1             : /*!
       2             :  * \file esys/repo/libgit2/guardequal_libgit2.cpp
       3             :  * \brief
       4             :  *
       5             :  * \cond
       6             :  * __legal_b__
       7             :  *
       8             :  * Copyright (c) 2023 Michel Gillet
       9             :  * Distributed under the MIT License.
      10             :  * (See accompanying file LICENSE.txt or
      11             :  * copy at https://opensource.org/licenses/MIT)
      12             :  *
      13             :  * __legal_e__
      14             :  * \endcond
      15             :  *
      16             :  */
      17             : 
      18             : #include "esys/repo/esysrepo_prec.h"
      19             : #include "esys/repo/libgit2/guardequal.h"
      20             : #include "esys/repo/libgit2/guard.h"
      21             : 
      22             : namespace esys::repo::libgit2
      23             : {
      24             : 
      25             : template<>
      26           0 : ESYSREPO_API bool guard_equal<git_remote>(const Guard<git_remote> &left, const Guard<git_remote> &right)
      27             : {
      28           0 :     if (git_remote_name(left.get()) != git_remote_name(right.get())) return false;
      29           0 :     if (git_remote_url(left.get()) != git_remote_url(right.get())) return false;
      30             :     return true;
      31             : }
      32             : 
      33             : } // namespace esys::repo::libgit2

Generated by: LCOV version 1.14