MCPcopy Create free account
hub / github.com/Abc-Arbitrage/Disruptor-cpp / main

Function main

Disruptor.PerfTests/main.cpp:14–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12void runOneTest(const TestRepository& testRepository, const std::string& testName);
13
14int main(int, char**)
15{
16 auto& testRepository = TestRepository::instance();
17
18 std::string testName;
19
20 std::cout << "Test name (ALL by default): " << testName << " ?" << std::endl;
21
22 std::getline(std::cin, testName);
23
24 boost::algorithm::trim(testName);
25
26 if (boost::algorithm::iequals(testName, "ALL") || testName.empty())
27 {
28 runAllTests(testRepository);
29 }
30 else
31 {
32 runOneTest(testRepository, testName);
33 }
34
35 return 0;
36}
37
38void runAllTests(const TestRepository& testRepository)
39{

Callers

nothing calls this directly

Calls 3

runAllTestsFunction · 0.85
runOneTestFunction · 0.85
emptyMethod · 0.80

Tested by

no test coverage detected