MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / RegisterTests

Function RegisterTests

testing/testrunner/runner_bin.cc:83–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81};
82
83absl::Status RegisterTests(const TestSuite& test_suite,
84 const std::shared_ptr<TestRunner>& test_runner) {
85 for (const auto& section : test_suite.sections()) {
86 for (const TestCase& test_case : section.tests()) {
87 testing::RegisterTest(
88 test_suite.name().c_str(),
89 absl::StrCat(section.name(), "/", test_case.name()).c_str(), nullptr,
90 nullptr, __FILE__, __LINE__, [&test_runner, test_case]() -> CelTest* {
91 return new CelTest(test_runner, test_case);
92 });
93 }
94 }
95 return absl::OkStatus();
96}
97
98absl::StatusOr<std::string> ReadFileToString(absl::string_view file_path) {
99 std::ifstream file_stream{std::string(file_path)};

Callers 1

mainFunction · 0.85

Calls 1

nameMethod · 0.45

Tested by

no test coverage detected