GCC Code Coverage Report


Directory: ./
File: tests/echo.cc
Date: 2025-05-26 15:04:55
Exec Total Coverage
Lines: 7 9 77.8%
Functions: 2 4 50.0%
Branches: 4 8 50.0%

Line Branch Exec Source
1 #include <hpp/corba/template/server.hh>
2
3 // files tests/echo.hh and tests/echoSK.cc are generated at compile time using
4 // omniidl -bcxx echo.idl
5 #include "tests/echo.hh"
6
7 class Echo_i : public POA_Echo {
8 public:
9
1/2
✓ Branch 3 taken 1 times.
✗ Branch 4 not taken.
1 inline Echo_i() {}
10 virtual ~Echo_i() {}
11 virtual char* echoString(const char* mesg);
12 };
13
14 char* Echo_i::echoString(const char* mesg) { return CORBA::string_dup(mesg); }
15
16 1 int main() {
17
1/2
✓ Branch 1 taken 1 times.
✗ Branch 2 not taken.
1 hpp::corba::Server<Echo_i> server(0, NULL);
18
1/2
✓ Branch 1 taken 1 times.
✗ Branch 2 not taken.
1 server.initRootPOA(true);
19
1/2
✓ Branch 1 taken 1 times.
✗ Branch 2 not taken.
1 server.startCorbaServer();
20 1 return 0;
21 1 }
22