MCPcopy Create free account
hub / github.com/HO-COOH/FastCopy / RunAllTest

Method RunAllTest

SpeedTest/TestFactory.cpp:15–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13std::vector<TestResult> TestFactory::s_testResults;
14
15void TestFactory::RunAllTest()
16{
17 for (auto& test : s_implementations)
18 {
19 auto name = test->GetName();
20 std::cout << "Testing: " << name;
21 auto before = std::chrono::steady_clock::now();
22 if (test->Run(s_paths) && verify())
23 {
24 std::cout << "\t Success.";
25 s_testResults.push_back(TestResult{ test->GetName(), std::chrono::steady_clock::now() - before });
26 }
27 else
28 {
29 std::cout << "\t Failed.";
30 }
31 std::cout << "\t Clearing ";
32 //clearTestination();
33 std::cout << "finished.\n";
34 }
35 std::ranges::sort(s_testResults);
36}
37
38void TestFactory::Register(std::unique_ptr<ICopyBase>&& test)
39{

Callers

nothing calls this directly

Calls 2

GetNameMethod · 0.45
RunMethod · 0.45

Tested by

no test coverage detected