GCC Code Coverage Report


Directory: src/gate/
File: src/gate/system/tests/gatesystem_cpp_test/test_netconfig.cpp
Date: 2025-09-14 13:10:38
Exec Total Coverage
Lines: 4 4 100.0%
Functions: 3 3 100.0%
Branches: 7 21 33.3%

Line Branch Exec Source
1 #include "gate/tests.hpp"
2 #include "gate/system/netconfigs.hpp"
3
4 using namespace gate;
5 using namespace gate::sys;
6
7
8
2/7
✓ Branch 2 taken 1 times.
✓ Branch 3 taken 1 times.
✗ Branch 4 not taken.
✗ Branch 11 not taken.
✗ Branch 12 not taken.
✗ Branch 14 not taken.
✗ Branch 15 not taken.
6 GATEXX_TEST_UNIT(Netconfig)
9 {
10
1/2
✓ Branch 1 taken 1 times.
✗ Branch 2 not taken.
4 Array<NetInterface> ifs = NetConfig::findAllNetInterfaces();
11
4/12
✓ Branch 1 taken 1 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 1 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 1 times.
✗ Branch 8 not taken.
✓ Branch 10 taken 1 times.
✗ Branch 11 not taken.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
✗ Branch 16 not taken.
✗ Branch 17 not taken.
2 GATEXX_TEST_CHECK(!ifs.empty());
12 2 }
13