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

Function GetTestSuite

testing/testrunner/runner_bin.cc:159–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159TestSuite GetTestSuite() {
160 std::string test_suite_path = absl::GetFlag(FLAGS_test_suite_path);
161 if (!test_suite_path.empty()) {
162 return ReadTestSuiteFromPath(test_suite_path);
163 }
164
165 // If no test suite path is provided, use the factory function to get the
166 // test suite after checking if the factory function is empty or not.
167 std::function<TestSuite()> test_suite_factory =
168 cel::test::internal::GetCelTestSuiteFactory();
169 if (test_suite_factory == nullptr) {
170 ABSL_LOG(FATAL)
171 << "No CEL test suite provided. Please provide a test suite using "
172 "either the bzl macro or the CEL_REGISTER_TEST_SUITE_FACTORY "
173 "preprocessor macro.";
174 }
175 return test_suite_factory();
176}
177
178void UpdateWithExpressionFromCommandLineFlags(
179 CelTestContext& cel_test_context) {

Callers 1

mainFunction · 0.85

Calls 2

ReadTestSuiteFromPathFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected