GCC Code Coverage Report


Directory: ./
File: src/PProjectMembers.cpp
Date: 2026-01-30 16:30:53
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 : CeCILL-C
5 ****************************************/
6
7
8 #include "PProjectMembers.h"
9
10 ///Constructor of class PProjectMembers
11
3/3
✓ Branch 0 (3→4) taken 34 times.
✓ Branch 2 (4→5) taken 34 times.
✓ Branch 4 (5→6) taken 34 times.
34 PProjectMembers::PProjectMembers(){
12
1/1
✓ Branch 0 (6→7) taken 34 times.
34 initialisationPProjectMembers();
13 34 }
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 35 PProjectMembers::~PProjectMembers(){
24
25 35 }
26
27 ///Operator = of class PProjectMembers
28 /** @param other : PProjectMembers we want ot copy
29 * @return copied class PProjectMembers
30 */
31 17 PProjectMembers & PProjectMembers::operator = (const PProjectMembers & other){
32 17 copyPProjectMembers(other);
33 17 return *this;
34 }
35
36 ///Sets the firstName of the PProjectMembers
37 /** @param firstName : firstName of the PProjectMembers
38 */
39 17 void PProjectMembers::setFirstName(const PString & firstName){
40 17 p_firstName = firstName;
41 17 }
42
43 ///Sets the lastName of the PProjectMembers
44 /** @param lastName : lastName of the PProjectMembers
45 */
46 17 void PProjectMembers::setLastName(const PString & lastName){
47 17 p_lastName = lastName;
48 17 }
49
50 ///Sets the affiliation of the PProjectMembers
51 /** @param affiliation : affiliation of the PProjectMembers
52 */
53 17 void PProjectMembers::setAffiliation(const PString & affiliation){
54 17 p_affiliation = affiliation;
55 17 }
56
57 ///Sets the email of the PProjectMembers
58 /** @param email : email of the PProjectMembers
59 */
60 17 void PProjectMembers::setEmail(const PString & email){
61 17 p_email = email;
62 17 }
63
64 ///Gets the firstName of the PProjectMembers
65 /** @return firstName of the PProjectMembers
66 */
67 22 const PString & PProjectMembers::getFirstName() const{
68 22 return p_firstName;
69 }
70
71 ///Gets the firstName of the PProjectMembers
72 /** @return firstName of the PProjectMembers
73 */
74 20 PString & PProjectMembers::getFirstName(){
75 20 return p_firstName;
76 }
77
78 ///Gets the lastName of the PProjectMembers
79 /** @return lastName of the PProjectMembers
80 */
81 22 const PString & PProjectMembers::getLastName() const{
82 22 return p_lastName;
83 }
84
85 ///Gets the lastName of the PProjectMembers
86 /** @return lastName of the PProjectMembers
87 */
88 20 PString & PProjectMembers::getLastName(){
89 20 return p_lastName;
90 }
91
92 ///Gets the affiliation of the PProjectMembers
93 /** @return affiliation of the PProjectMembers
94 */
95 16 const PString & PProjectMembers::getAffiliation() const{
96 16 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 22 const PString & PProjectMembers::getEmail() const{
110 22 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 18 void PProjectMembers::copyPProjectMembers(const PProjectMembers & other){
124 18 p_firstName = other.p_firstName;
125 18 p_lastName = other.p_lastName;
126 18 p_affiliation = other.p_affiliation;
127 18 p_email = other.p_email;
128 18 }
129
130 ///Initialisation Function of class PProjectMembers
131 34 void PProjectMembers::initialisationPProjectMembers(){
132 34 p_firstName = "";
133 34 p_lastName = "";
134 34 p_affiliation = "";
135 34 p_email = "";
136 34 }
137
138