LCOV - code coverage report
Current view: top level - src/esys/repo/manifest - include_manifest.cpp (source / functions) Hit Total Coverage
Test: esysrepo_coverage.info Lines: 7 14 50.0 %
Date: 2026-08-01 10:43:40 Functions: 4 7 57.1 %

          Line data    Source code
       1             : /*!
       2             :  * \file esys/repo/manifest/include_manifest.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/manifest/include.h"
      20             : 
      21             : namespace esys::repo::manifest
      22             : {
      23             : 
      24           2 : Include::Include() = default;
      25             : 
      26           0 : Include::Include(const std::string &name)
      27           0 :     : m_name(name)
      28             : {
      29           0 : }
      30             : 
      31           2 : Include::~Include() = default;
      32             : 
      33           2 : void Include::set_name(const std::string &name)
      34             : {
      35           2 :     m_name = name;
      36           2 : }
      37             : 
      38           2 : const std::string &Include::get_name() const
      39             : {
      40           2 :     return m_name;
      41             : }
      42             : 
      43           0 : bool Include::operator==(const Include &other) const
      44             : {
      45           0 :     return get_name() == other.get_name();
      46             : }
      47             : 
      48           0 : bool Include::operator!=(const Include &other) const
      49             : {
      50           0 :     return !operator==(other);
      51             : }
      52             : 
      53             : } // namespace esys::repo::manifest

Generated by: LCOV version 1.14