MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / main

Function main

Tests/SCBuildTest/SCBuildTest.cpp:22–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20SC::Console* globalConsole = nullptr;
21
22int main(int argc, const char* argv[])
23{
24 using namespace SC;
25 Globals::init(Globals::Global, {1024 * 1024}); // 1MB for ownership tracking
26 Console::tryAttachingToParentConsole();
27
28 Console console;
29 globalConsole = &console;
30
31 TestReport::Output<Console> trConsole = {console};
32 TestReport report(trConsole, argc, argv);
33 if (report.hasStartupFailure())
34 return report.getTestReturnCode();
35 report.debugBreakOnFailedTest = true;
36
37 runSCBuildTest(report);
38 runBuildTest(report);
39 return report.getTestReturnCode();
40}

Callers

nothing calls this directly

Calls 4

initFunction · 0.85
runBuildTestFunction · 0.85
hasStartupFailureMethod · 0.80
getTestReturnCodeMethod · 0.80

Tested by

no test coverage detected