MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / scanTestFiles

Function scanTestFiles

test/runner/e2e_test.cpp:352–362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

350}
351
352void scanTestFiles(const std::string& path) {
353 if (std::filesystem::is_regular_file(path)) {
354 parseAndRegisterTestGroup(path);
355 return;
356 }
357 for (const auto& entry : std::filesystem::recursive_directory_iterator(path)) {
358 if (!entry.is_regular_file() || std::filesystem::path(entry).extension() != ".test")
359 continue;
360 parseAndRegisterTestGroup(entry.path().string(), true);
361 }
362}
363
364std::string findTestFile(const std::string& testCase) {
365 std::ifstream infile(TestHelper::getTestListFile());

Callers 2

checkGtestParamsFunction · 0.85
mainFunction · 0.85

Calls 1

Tested by

no test coverage detected