| 12 | void runOneTest(const TestRepository& testRepository, const std::string& testName); |
| 13 | |
| 14 | int 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 | |
| 38 | void runAllTests(const TestRepository& testRepository) |
| 39 | { |
nothing calls this directly
no test coverage detected