GCC Code Coverage Report


Directory: .
File: main.cpp
Date: 2025-09-27 21:24:05+00:00
Coverage Exec Excl Total
Lines: 100.0% 4 0 4
Functions: 100.0% 1 0 1
Branches: 66.7% 4 0 6

Line Branch Exec Source
1 #include <iostream>
2 #include <cstdlib>
3
4 2 int main(int argc, char* argv[]) {
5 try {
6
3/4
✓ Branch 0 taken 1 time.
✓ Branch 1 taken 1 time.
✓ Branch 2 taken 1 time.
✗ Branch 3 not taken.
2 std::cout << "Exit program" << std::endl;
7
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 std::exit(0);
8 }
9 catch (const std::exception& e) {
10 // Do nothing
11 }
12 2 }
13