GCC Code Coverage Report


Directory: .
File: main.cpp
Date: 2024-10-13 08:38:16+00:00
Exec Total Coverage
Lines: 4 4 100.0%
Functions: 1 1 100.0%
Branches: 4 6 66.7%

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 times.
✓ Branch 1 taken 1 times.
✓ Branch 2 taken 1 times.
✗ Branch 3 not taken.
2 std::cout << "Exit program" << std::endl;
7
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 times.
1 std::exit(0);
8 }
9 catch (const std::exception& e) {
10 // Do nothing
11 }
12 2 }
13