GCC Code Coverage Report


Directory: ../
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 100.0% 0 / 9 / 9
Functions: -% 0 / 1 / 1
Branches: -% 0 / 14 / 14

test/main.cpp
Line Branch Exec Source
1 // Copyright (c) 2021-2026 ChilliBits. All rights reserved.
2
3 #include "driver/TestDriver.h"
4
5 #include <gtest/gtest.h>
6
7 // GCOV_EXCL_START
8 using namespace spice::testing;
9
10 /**
11 * Entry point to the Spice testing suite
12 *
13 * @param argc Argument count
14 * @param argv Argument vector
15 * @return Return code
16 */
17 − int main(int argc, char **argv) {
18 − ::testing::InitGoogleTest(&argc, argv);
19 // Initialize command line parser
20 − TestDriver driver;
21 − driver.createInterface();
22 − driver.addOptions();
23 // Parse command line args
24 − if (const int parseResult = driver.parse(argc, argv); parseResult != 0)
25 − return parseResult;
26 // Run tests
27 − return RUN_ALL_TESTS();
28 − }
29
30 // GCOV_EXCL_STOP
31