GCC Code Coverage Report


Directory: ../
File: test/main.cpp
Date: 2024-12-24 01:17:15
Exec Total Coverage
Lines: 0 0 100.0%
Functions: 0 0 -%
Branches: 0 0 -%

Line Branch Exec Source
1 // Copyright (c) 2021-2024 ChilliBits. All rights reserved.
2
3 #include "driver/Driver.h"
4
5 #include <gtest/gtest.h>
6
7 // GCOV_EXCL_START
8
9 namespace spice::testing {
10
11 bool updateRefs = false;
12 bool runBenchmarks = false;
13 bool enableLeakDetection = false;
14 bool skipNonGitHubTests = false;
15
16 } // namespace spice::testing
17
18 using namespace spice::testing;
19
20 /**
21 * Entry point to the Spice testing suite
22 *
23 * @param argc Argument count
24 * @param argv Argument vector
25 * @return Return code
26 */
27 int main(int argc, char **argv) {
28 ::testing::InitGoogleTest(&argc, argv);
29 // Initialize command line parser
30 Driver driver;
31 driver.createInterface();
32 driver.addOptions(updateRefs, runBenchmarks, enableLeakDetection, skipNonGitHubTests);
33 // Parse command line args
34 driver.parse(argc, argv);
35 // Run tests
36 return RUN_ALL_TESTS();
37 }
38
39 // GCOV_EXCL_STOP
40