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

Function checkGtestParams

test/runner/e2e_test.cpp:376–392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

374}
375
376void checkGtestParams(int argc, char** argv) {
377 if (argc > 1) {
378 std::string argument = argv[1];
379 if (argument == "--gtest_list_tests") {
380 std::filesystem::remove_all(TestHelper::getTestListFile());
381 scanTestFiles(TestHelper::appendLbugRootPath(TestHelper::E2E_TEST_FILES_DIRECTORY));
382 }
383 if (argument.starts_with("--gtest_filter=")) {
384 std::string testCaseFile = findTestFile(argument.substr(15));
385 if (testCaseFile.empty()) {
386 scanTestFiles(TestHelper::appendLbugRootPath(TestHelper::E2E_TEST_FILES_DIRECTORY));
387 } else {
388 parseAndRegisterTestGroup(testCaseFile);
389 }
390 }
391 }
392}
393
394int main(int argc, char** argv) {
395 try {

Callers 1

mainFunction · 0.85

Calls 4

scanTestFilesFunction · 0.85
findTestFileFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected