| 108 | } |
| 109 | |
| 110 | absl::StatusOr<std::unique_ptr<CelExpressionBuilder>> |
| 111 | CreateTestCelExpressionBuilder() { |
| 112 | auto builder = google::api::expr::runtime::CreateCelExpressionBuilder(); |
| 113 | CEL_RETURN_IF_ERROR(google::api::expr::runtime::RegisterBuiltinFunctions( |
| 114 | builder->GetRegistry())); |
| 115 | return builder; |
| 116 | } |
| 117 | |
| 118 | // Creates a static, singleton instance of the basic compiler to be shared |
| 119 | // across tests, avoiding repeated setup costs. |
no test coverage detected