GCC Code Coverage Report


Directory: ./
File: TESTS/TEST_DAEMON_SEND_DATA/SendDataDaemon.cpp
Date: 2025-03-14 12:18:05
Exec Total Coverage
Lines: 12 15 80.0%
Branches: 1 14 7.1%

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 "SendDataDaemon.h"
9
10 ///Default constructor of SendDataDaemon
11 1 SendDataDaemon::SendDataDaemon(){
12 1 initialisationSendDataDaemon();
13 1 }
14
15 ///Destructor of SendDataDaemon
16 2 SendDataDaemon::~SendDataDaemon(){
17
18 }
19
20 ///Extra processing (here to test Ping-Pong mode)
21 2 void SendDataDaemon::extraLoopProcessing(){
22 //Let's send the Ping message to get the answer
23 2 sendInt();
24 2 }
25
26 ///Initialisation function of the class SendDataDaemon
27 1 void SendDataDaemon::initialisationSendDataDaemon(){
28
29 1 }
30
31 ///Send a Ping message
32 2 void SendDataDaemon::sendInt(){
33
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 if(!p_isFirstSend){
34 2 return;
35 }
36 int data = 42;
37 phoenix_assert(sendValue("test", data));
38 p_isFirstSend = false;
39 }
40
41