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

Function NewConformanceServiceFromFlags

conformance/run.cc:255–267  ·  view source on GitHub ↗

We could push this do be done per test or suite, but to avoid changing more than necessary we do it once to mimic the previous runner.

Source from the content-addressed store, hash-verified

253// We could push this do be done per test or suite, but to avoid changing more
254// than necessary we do it once to mimic the previous runner.
255std::shared_ptr<cel_conformance::ConformanceServiceInterface>
256NewConformanceServiceFromFlags() {
257 auto status_or_service = cel_conformance::NewConformanceService(
258 cel_conformance::ConformanceServiceOptions{
259 .optimize = absl::GetFlag(FLAGS_opt),
260 .modern = absl::GetFlag(FLAGS_modern),
261 .recursive = absl::GetFlag(FLAGS_recursive),
262 .select_optimization = absl::GetFlag(FLAGS_select_optimization),
263 });
264 ABSL_CHECK_OK(status_or_service);
265 return std::shared_ptr<cel_conformance::ConformanceServiceInterface>(
266 std::move(*status_or_service));
267}
268
269} // namespace
270

Callers 1

mainFunction · 0.85

Calls 1

NewConformanceServiceFunction · 0.85

Tested by

no test coverage detected