LCOV - code coverage report
Current view: top level - src/esys/repo/grepo - manifest_grepo.cpp (source / functions) Hit Total Coverage
Test: esysrepo_coverage.info Lines: 17 23 73.9 %
Date: 2026-08-01 10:43:40 Functions: 7 11 63.6 %

          Line data    Source code
       1             : /*!
       2             :  * \file esys/repo/grepo/manifest_grepo.cpp
       3             :  * \brief
       4             :  *
       5             :  * \cond
       6             :  * __legal_b__
       7             :  *
       8             :  * Copyright (c) 2020-2021 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/grepo/manifest.h"
      20             : #include "esys/repo/grepo/manifestimpl.h"
      21             : 
      22             : namespace esys::repo::grepo
      23             : {
      24             : 
      25             : const std::string Manifest::s_folder_name = "grepo";
      26             : 
      27          37 : const std::string &Manifest::get_folder_name()
      28             : {
      29          37 :     return s_folder_name;
      30             : }
      31             : 
      32          27 : Manifest::Manifest()
      33          27 :     : manifest::FileBase()
      34             : {
      35          27 :     m_impl = std::make_unique<ManifestImpl>(this);
      36          27 : }
      37             : 
      38          27 : Manifest::~Manifest() = default;
      39             : 
      40          25 : Result Manifest::read(const std::string &filename)
      41             : {
      42          25 :     set_filename(filename);
      43             : 
      44          25 :     return m_impl->read(filename);
      45             : }
      46             : 
      47           2 : Result Manifest::write(const std::string &filename)
      48             : {
      49           2 :     set_filename(filename);
      50             : 
      51           2 :     return m_impl->write(filename);
      52             : }
      53             : 
      54           1 : Result Manifest::write(std::ostream &os)
      55             : {
      56           1 :     return m_impl->write(os);
      57             : }
      58             : 
      59           1 : bool Manifest::operator==(const Manifest &other) const
      60             : {
      61           3 :     return (*get_data() == *other.get_data());
      62             : }
      63             : 
      64           0 : bool Manifest::operator!=(const Manifest &other) const
      65             : {
      66           0 :     return !operator==(other);
      67             : }
      68             : 
      69           0 : ManifestImpl *Manifest::get_impl()
      70             : {
      71           0 :     return m_impl.get();
      72             : }
      73             : 
      74           0 : ESYSREPO_API std::ostream &operator<<(std::ostream &os, const Manifest &manifest)
      75             : {
      76           0 :     return os;
      77             : }
      78             : 
      79             : } // namespace esys::repo::grepo

Generated by: LCOV version 1.14