GCC Code Coverage Report


Directory: ./
File: TESTS/TEST_DAEMONS/TEST_DAEMON_WORKFLOW/DaemonBackend/Shadok.cpp
Date: 2026-01-15 15:35:36
Exec Total Coverage
Lines: 7 17 41.2%
Functions: 4 9 44.4%
Branches: 1 1 100.0%

Line Branch Exec Source
1 /***************************************
2 Auteur : Pierre Aubert
3 Mail : pierre.aubert@lapp.in2p3.fr
4 Licence : CeCILL-C
5 ****************************************/
6
7 #include "Shadok.h"
8
9 /// Typestream specialization for Shadok
10 /** @return shadok string
11 */
12 template<>
13 11 std::string phoenix_getTypeName<Shadok>(){
14
1/1
✓ Branch 0 (4→5) taken 11 times.
22 return "Shadok";
15 }
16
17 /// Constructor of Shadok with parameters
18 5 Shadok::Shadok(const PString & name, int age)
19 5 :p_name(name), p_age(age)
20 5 {}
21
22 ///Construcotr of Shadok
23 5 Shadok::Shadok(){}
24
25 ///Destructor of Shadok
26 10 Shadok::~Shadok(){}
27
28 /// Set the name of the Shadok
29 /** @param name : name of the Shadok
30 */
31 void Shadok::setName(const PString & name){
32 p_name = name;
33 }
34
35 /// Set the age of the Shadok
36 /** @param age : age of the Shadok
37 */
38 void Shadok::setAge(int age){
39 p_age = age;
40 }
41
42 /// Get the name of the Shadok
43 /** @return name of the Shadok
44 */
45 const PString & Shadok::getName() const{
46 return p_name;
47 }
48
49 /// Get the age of the Shadok
50 /** @return age of the Shadok
51 */
52 const int & Shadok::getAge() const{
53 return p_age;
54 }
55
56
57