GCC Code Coverage Report


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

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