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.
| 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. |
| 255 | std::shared_ptr<cel_conformance::ConformanceServiceInterface> |
| 256 | NewConformanceServiceFromFlags() { |
| 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 |
no test coverage detected