GCC Code Coverage Report


Directory: ./
File: src/Representation/class_attribute_utils.cpp
Date: 2026-10-16 17:52:29
Exec Total Coverage
Lines: 6 16 37.5%
Functions: 1 2 50.0%
Branches: 3 8 37.5%

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 "class_attribute_utils.h"
9
10 ///Creates a PClassAttribute
11 /** @param type : type of the attribute
12 * @param name : name of the attribute
13 * @param documentation : documentation of the attribute
14 */
15 43 PClassAttribute createClassAttribute(const PString & type, const PString & name, const PString & documentation){
16 43 PClassAttribute attr;
17
1/1
✓ Branch 0 (3→4) taken 43 times.
43 attr.setType(type);
18
1/1
✓ Branch 0 (4→5) taken 43 times.
43 attr.setName(name);
19
1/1
✓ Branch 0 (5→6) taken 43 times.
43 attr.setDocumentation(documentation);
20 43 return attr;
21 ✗ }
22
23 ///Create an attribute
24 /** @param typeName : type of the attribute
25 * @param name : name of the attribute
26 * @param isPointer : true if the attribute is a pointer
27 * @param isReference : true if the attribute is a reference
28 * @param documentation : documentation of the attribute
29 * @return PClassAttribute
30 */
31 ✗ PClassAttribute createClassAttribute(const PString & typeName, const PString & name, bool isPointer, bool isReference, const PString & documentation){
32 ✗ PClassAttribute attr;
33 ✗ attr.setType(typeName);
34 ✗ attr.setName(name);
35 ✗ attr.setIsPointer(isPointer);
36 ✗ attr.setIsReference(isReference);
37 ✗ attr.setDocumentation(documentation);
38
39 ✗ return attr;
40 ✗ }
41
42
43