Piac test code coverage report
Current view: top level - build/gnu - project_config.cpp (source / functions) Hit Total Coverage
Commit: Piac-DEBUG Lines: 4 6 66.7 %
Date: 2022-12-16 13:46:15 Functions: 4 6 66.7 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 4 12 33.3 %

           Branch data     Line data    Source code
       1                 :            : // *****************************************************************************
       2                 :            : /*!
       3                 :            :   \file      src/project_config.cpp.in
       4                 :            :   \copyright 2022-2025 J. Bakosi,
       5                 :            :              All rights reserved. See the LICENSE file for details.
       6                 :            :   \brief     Piac project configuartion imported build system data from cmake
       7                 :            : */
       8                 :            : // *****************************************************************************
       9                 :            : 
      10                 :            : #include <string>
      11                 :            : 
      12                 :            : #include "project_config.hpp"
      13                 :            : 
      14                 :            : namespace piac {
      15                 :            : 
      16                 :            : #define DAEMON_EXECUTABLE    "piac-daemon"
      17                 :            : #define CLI_EXECUTABLE       "piac-cli"
      18                 :            : 
      19                 :            : #define PROJECT_VERSION      "0.1.0"
      20                 :            : #define COMPILER             "/usr/lib/ccache/c++"
      21                 :            : #define BUILD_TYPE           "debug"
      22                 :            : #define BUILD_DATE           "Fri 16 Dec 2022 01:44:39 PM UTC"
      23                 :            : 
      24                 :            : // Accessor definitions as strings of configuration values imported from cmake
      25                 :            : 
      26         [ +  - ]:        160 : std::string daemon_executable() { return DAEMON_EXECUTABLE; }
      27         [ +  - ]:        224 : std::string cli_executable() { return CLI_EXECUTABLE; }
      28                 :            : 
      29         [ +  - ]:        130 : std::string project_version() { return PROJECT_VERSION; }
      30         [ -  - ]:          0 : std::string compiler() { return COMPILER; }
      31         [ +  - ]:        130 : std::string build_type() { return BUILD_TYPE; }
      32         [ -  - ]:          0 : std::string build_date() { return BUILD_DATE; }
      33                 :            : 
      34                 :            : } // piac::

Generated by: LCOV version 1.14