GCC Code Coverage Report


Directory: ../
File: test/driver/Driver.h
Date: 2025-03-05 01:50:32
Exec Total Coverage
Lines: 0 0 100.0%
Functions: 0 0 -%
Branches: 0 0 -%

Line Branch Exec Source
1 // Copyright (c) 2021-2025 ChilliBits. All rights reserved.
2
3 #pragma once
4
5 #include "../../lib/cli11/CLI11.hpp"
6
7 // GCOV_EXCL_START
8 namespace spice::testing {
9
10 struct TestDriverCliOptions {
11 bool updateRefs = false;
12 bool runBenchmarks = false;
13 bool enableLeakDetection = false;
14 bool isGitHubActions = false;
15 bool isVerbose = false;
16 };
17
18 /**
19 * Helper class to set up the cli interface and command line parser
20 */
21 class Driver {
22 public:
23 // Constructors
24 explicit Driver() = default;
25
26 // Public methods
27 void createInterface();
28 void addOptions();
29 int parse(int argc, char **argv);
30
31 private:
32 // Private members
33 CLI::App app = CLI::App{"Spice Test Runner", "spice"};
34 };
35
36 } // namespace spice::testing
37 // GCOV_EXCL_STOP
38