LCOV - code coverage report
Current view: top level - src/esys/repo/git - diff_git.cpp (source / functions) Hit Total Coverage
Test: esysrepo_coverage.info Lines: 22 22 100.0 %
Date: 2026-08-01 10:43:40 Functions: 10 10 100.0 %

          Line data    Source code
       1             : /*!
       2             :  * \file esys/repo/git/diff_git.cpp
       3             :  * \brief
       4             :  *
       5             :  * \cond
       6             :  * __legal_b__
       7             :  *
       8             :  * Copyright (c) 2022 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/git/diff.h"
      20             : 
      21             : namespace esys::repo::git
      22             : {
      23             : 
      24           4 : Diff::Diff() = default;
      25             : 
      26           4 : Diff::~Diff() = default;
      27             : 
      28           4 : void Diff::set_files_changed(unsigned int files_changed)
      29             : {
      30           4 :     m_files_changed = files_changed;
      31           4 : }
      32             : 
      33           4 : unsigned int Diff::get_files_changed() const
      34             : {
      35           4 :     return m_files_changed;
      36             : }
      37             : 
      38           4 : void Diff::set_insertions(unsigned int insertions)
      39             : {
      40           4 :     m_insertions = insertions;
      41           4 : }
      42             : 
      43           4 : unsigned int Diff::get_insertions() const
      44             : {
      45           4 :     return m_insertions;
      46             : }
      47             : 
      48           4 : void Diff::set_deletions(unsigned int deletions)
      49             : {
      50           4 :     m_deletions = deletions;
      51           4 : }
      52             : 
      53           4 : unsigned int Diff::get_deletions() const
      54             : {
      55           4 :     return m_deletions;
      56             : }
      57             : 
      58           4 : void Diff::set_renames(unsigned int renames)
      59             : {
      60           4 :     m_renames = renames;
      61           4 : }
      62             : 
      63           4 : unsigned int Diff::get_renames() const
      64             : {
      65           4 :     return m_renames;
      66             : }
      67             : 
      68             : } // namespace esys::repo::git

Generated by: LCOV version 1.14