GCC Code Coverage Report


Directory: ./
File: src/PProjectMembers.cpp
Date: 2026-10-16 17:52:29
Exec Total Coverage
Lines: 51 51 100.0%
Functions: 18 19 94.7%
Branches: 8 8 100.0%

Line Branch Exec Source
1 /***************************************
2 Auteur : Pierre Aubert
3 Mail : pierre.aubert@lapp.in2p3.fr
4 Licence : LGPL-3.0-only
5 ****************************************/
6
7
8 #include "PProjectMembers.h"
9
10 ///Constructor of class PProjectMembers
11
3/3
✓ Branch 0 (3→4) taken 22 times.
✓ Branch 2 (4→5) taken 22 times.
✓ Branch 4 (5→6) taken 22 times.
22 PProjectMembers::PProjectMembers(){
12
1/1
✓ Branch 0 (6→7) taken 22 times.
22 initialisationPProjectMembers();
13 22 }
14
15 ///Copy Constructor of class PProjectMembers
16 /** @param other : PProjectMembers we want ot copy
17 */
18
3/3
✓ Branch 0 (3→4) taken 1 times.
✓ Branch 2 (4→5) taken 1 times.
✓ Branch 4 (5→6) taken 1 times.
1 PProjectMembers::PProjectMembers(const PProjectMembers & other){
19
1/1
✓ Branch 0 (6→7) taken 1 times.
1 copyPProjectMembers(other);
20 1 }
21
22 ///Destructor of class PProjectMembers
23 23 PProjectMembers::~PProjectMembers(){
24
25 23 }
26
27 ///Operator = of class PProjectMembers
28 /** @param other : PProjectMembers we want ot copy
29 * @return copied class PProjectMembers
30 */
31 11 PProjectMembers & PProjectMembers::operator = (const PProjectMembers & other){
32 11 copyPProjectMembers(other);
33 11 return *this;
34 }
35
36 ///Sets the firstName of the PProjectMembers
37 /** @param firstName : firstName of the PProjectMembers
38 */
39 11 void PProjectMembers::setFirstName(const PString & firstName){
40 11 p_firstName = firstName;
41 11 }
42
43 ///Sets the lastName of the PProjectMembers
44 /** @param lastName : lastName of the PProjectMembers
45 */
46 11 void PProjectMembers::setLastName(const PString & lastName){
47 11 p_lastName = lastName;
48 11 }
49
50 ///Sets the affiliation of the PProjectMembers
51 /** @param affiliation : affiliation of the PProjectMembers
52 */
53 11 void PProjectMembers::setAffiliation(const PString & affiliation){
54 11 p_affiliation = affiliation;
55 11 }
56
57 ///Sets the email of the PProjectMembers
58 /** @param email : email of the PProjectMembers
59 */
60 11 void PProjectMembers::setEmail(const PString & email){
61 11 p_email = email;
62 11 }
63
64 ///Gets the firstName of the PProjectMembers
65 /** @return firstName of the PProjectMembers
66 */
67 12 const PString & PProjectMembers::getFirstName() const{
68 12 return p_firstName;
69 }
70
71 ///Gets the firstName of the PProjectMembers
72 /** @return firstName of the PProjectMembers
73 */
74 14 PString & PProjectMembers::getFirstName(){
75 14 return p_firstName;
76 }
77
78 ///Gets the lastName of the PProjectMembers
79 /** @return lastName of the PProjectMembers
80 */
81 12 const PString & PProjectMembers::getLastName() const{
82 12 return p_lastName;
83 }
84
85 ///Gets the lastName of the PProjectMembers
86 /** @return lastName of the PProjectMembers
87 */
88 14 PString & PProjectMembers::getLastName(){
89 14 return p_lastName;
90 }
91
92 ///Gets the affiliation of the PProjectMembers
93 /** @return affiliation of the PProjectMembers
94 */
95 4 const PString & PProjectMembers::getAffiliation() const{
96 4 return p_affiliation;
97 }
98
99 ///Gets the affiliation of the PProjectMembers
100 /** @return affiliation of the PProjectMembers
101 */
102 4 PString & PProjectMembers::getAffiliation(){
103 4 return p_affiliation;
104 }
105
106 ///Gets the email of the PProjectMembers
107 /** @return email of the PProjectMembers
108 */
109 12 const PString & PProjectMembers::getEmail() const{
110 12 return p_email;
111 }
112
113 ///Gets the email of the PProjectMembers
114 /** @return email of the PProjectMembers
115 */
116 4 PString & PProjectMembers::getEmail(){
117 4 return p_email;
118 }
119
120 ///Copy Function of class PProjectMembers
121 /** @param other : PProjectMembers we want ot copy
122 */
123 12 void PProjectMembers::copyPProjectMembers(const PProjectMembers & other){
124 12 p_firstName = other.p_firstName;
125 12 p_lastName = other.p_lastName;
126 12 p_affiliation = other.p_affiliation;
127 12 p_email = other.p_email;
128 12 }
129
130 ///Initialisation Function of class PProjectMembers
131 22 void PProjectMembers::initialisationPProjectMembers(){
132 22 p_firstName = "";
133 22 p_lastName = "";
134 22 p_affiliation = "";
135 22 p_email = "";
136 22 }
137
138