GCC Code Coverage Report


Directory: ./
File: TESTS/TEST_DATA_PROCESSING/Shadok.cpp
Date: 2025-03-14 12:18:05
Exec Total Coverage
Lines: 15 31 48.4%
Branches: 1 3 33.3%

Line Branch Exec Source
1 /***************************************
2 Auteur : Pierre Aubert
3 Mail : pierre.aubert@lapp.in2p3.fr
4 Licence : CeCILL-C
5 ****************************************/
6
7
8 #include "Shadok.h"
9
10 ///Get the name of the class Shadok
11 /** @return name of the class Shadok
12 */
13 template<>
14 4 std::string phoenix_getTypeName<Shadok >(){
15
1/1
✓ Branch 2 taken 4 times.
4 return "Shadok";
16 }
17
18 ///Constructor of class Shadok
19 2 Shadok::Shadok(){
20 2 initialisationShadok();
21 2 }
22
23 ///Copy Constructor of class Shadok
24 /** @param other : Shadok we want ot copy
25 */
26 Shadok::Shadok(const Shadok & other){
27 copyShadok(other);
28 }
29
30 ///Destructor of class Shadok
31 4 Shadok::~Shadok(){
32
33 }
34
35 ///Operator = of class Shadok
36 /** @param other : Shadok we want ot copy
37 * @return copied class Shadok
38 */
39 Shadok & Shadok::operator = (const Shadok & other){
40 copyShadok(other);
41 return *this;
42 }
43
44 ///Sets the age of the Shadok
45 /** @param age : age of the Shadok
46 */
47 1 void Shadok::setAge(int age){
48 1 p_age = age;
49 1 }
50
51 ///Sets the name of the Shadok
52 /** @param name : name of the Shadok
53 */
54 1 void Shadok::setName(const std::string & name){
55 1 p_name = name;
56 1 }
57
58 ///Gets the age of the Shadok
59 /** @return age of the Shadok
60 */
61 int Shadok::getAge() const{
62 return p_age;
63 }
64
65 ///Gets the age of the Shadok
66 /** @return age of the Shadok
67 */
68 int & Shadok::getAge(){
69 return p_age;
70 }
71
72 ///Gets the name of the Shadok
73 /** @return name of the Shadok
74 */
75 const std::string & Shadok::getName() const{
76 return p_name;
77 }
78
79 ///Gets the name of the Shadok
80 /** @return name of the Shadok
81 */
82 std::string & Shadok::getName(){
83 return p_name;
84 }
85
86 ///Copy Function of class Shadok
87 /** @param other : Shadok we want ot copy
88 */
89 void Shadok::copyShadok(const Shadok & other){
90 p_age = other.p_age;
91 p_name = other.p_name;
92 }
93
94 ///Initialisation Function of class Shadok
95 2 void Shadok::initialisationShadok(){
96 2 p_age = 0;
97 2 }
98
99