GCC Code Coverage Report


Directory: ./
File: src/Function/AbstractDataFunction.cpp
Date: 2026-01-15 15:35:36
Exec Total Coverage
Lines: 19 19 100.0%
Functions: 7 8 87.5%
Branches: 2 2 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
9
10 #include "AbstractDataFunction.h"
11
12 ///Default constructor of AbstractDataFunction
13 /** @param name : name of the function
14 */
15
1/1
✓ Branch 0 (3→4) taken 10 times.
10 AbstractDataFunction::AbstractDataFunction(const PString & name){
16
1/1
✓ Branch 0 (4→5) taken 10 times.
10 initialisationAbstractDataFunction(name);
17 10 }
18
19 ///Destructor of AbstractDataFunction
20 1 AbstractDataFunction::~AbstractDataFunction(){
21
22 1 }
23
24 ///Set the name of the function
25 /** @param name : name of the function
26 */
27 1 void AbstractDataFunction::setName(const PString & name){
28 1 p_name = name;
29 1 }
30
31 ///Name of the function
32 /** @return name of the function
33 */
34 15 const PString & AbstractDataFunction::getName() const{
35 15 return p_name;
36 }
37
38 ///Set the prototype of the current function
39 /** @param prototype : prototype of the current function
40 */
41 2 void AbstractDataFunction::setPrototype(const PString & prototype){
42 2 p_prototype = prototype;
43 2 }
44
45 ///Get the prototype of the current function
46 /** @return prototype of the current function
47 */
48 14 const PString & AbstractDataFunction::getPrototype() const{
49 14 return p_prototype;
50 }
51
52 ///Initialisation function of the class AbstractDataFunction
53 /** @param name : name of the function
54 */
55 10 void AbstractDataFunction::initialisationAbstractDataFunction(const PString & name){
56 10 p_name = name;
57 10 p_prototype = name;
58 10 }
59
60
61
62
63
64