GCC Code Coverage Report


Directory: src/gate/
File: src/gate/system/tests/gatesystem_cpp_privileged_test/test_restart.cpp
Date: 2026-08-06 22:46:24
Exec Total Coverage
Lines: 6 6 100.0%
Functions: 6 6 100.0%
Branches: 8 30 26.7%

Line Branch Exec Source
1 #include "gate/tests.hpp"
2 #include "gate/system/os.hpp"
3
4 using namespace gate;
5 using namespace gate::sys;
6
7
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(Reboot)
8 {
9
2/8
✗ Branch 3 not taken.
✓ Branch 4 taken 1 times.
✗ Branch 6 not taken.
✗ Branch 7 not taken.
✗ Branch 9 not taken.
✗ Branch 10 not taken.
✓ Branch 13 taken 1 times.
✗ Branch 14 not taken.
4 GATEXX_TEST_CHECK_THROW(OS::reboot());
10 2 }
11
12
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(Shutdown)
13 {
14
2/8
✗ Branch 3 not taken.
✓ Branch 4 taken 1 times.
✗ Branch 6 not taken.
✗ Branch 7 not taken.
✗ Branch 9 not taken.
✗ Branch 10 not taken.
✓ Branch 13 taken 1 times.
✗ Branch 14 not taken.
4 GATEXX_TEST_CHECK_THROW(OS::shutdown());
15 2 }
16