• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

rieske / trans / 29993228457

23 Jul 2026 08:57AM UTC coverage: 91.09% (-0.6%) from 91.733%
29993228457

push

github

web-flow
Harden process invocation, exit codes, and ownership (#57)

Replace shell system() with an argv-based Process helper that drains
stdout/stderr concurrently and fails hard on non-zero tool exits.
Propagate compile failures from Driver to main, move parsing/scanner
factories to unique_ptr, and throw from unfinished array codegen.
Add focused util/driver/codegen tests; keep production free of coverage
tooling hooks.

130 of 202 new or added lines in 9 files covered. (64.36%)

5643 of 6195 relevant lines covered (91.09%)

186846.55 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

82.35
/src/driver/Driver.cpp
1
#include "Driver.h"
2

3
#include <vector>
4

5
#include "Compiler.h"
6
#include "util/Logger.h"
7
#include "util/LogManager.h"
8

9
static Logger& err = LogManager::getErrorLogger();
10

11
int Driver::run(ConfigurationParser configurationParser) const {
231✔
12
    Configuration configuration = configurationParser.getConfiguration();
231✔
13
    Compiler compiler { configuration };
231✔
14

15
    int exitCode = 0;
231✔
16
    std::vector<std::string> sourceFilePaths = configuration.getSourceFiles();
231✔
17
    for (std::string sourceFilePath : sourceFilePaths) {
463✔
18
        try {
19
            compiler.compile(sourceFilePath);
254✔
20
        } catch (std::exception& exception) {
22✔
21
            err << "Error: " << exception.what() << "\n";
22✔
22
            exitCode = 1;
22✔
23
        } catch (...) {
22✔
NEW
24
            err << "Uncaught exception while compiling " << sourceFilePath << "\n";
×
NEW
25
            exitCode = 1;
×
NEW
26
        }
×
27
    }
232✔
28
    return exitCode;
231✔
29
}
231✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc