| 91 | } |
| 92 | |
| 93 | absl::Status RegisterConcatFunctions(FunctionRegistry& registry) { |
| 94 | using StrCatFnAdapter = |
| 95 | BinaryFunctionAdapter<absl::StatusOr<StringValue>, const StringValue&, |
| 96 | const StringValue&>; |
| 97 | CEL_RETURN_IF_ERROR(StrCatFnAdapter::RegisterGlobalOverload( |
| 98 | cel::builtin::kAdd, &ConcatString, registry)); |
| 99 | |
| 100 | using BytesCatFnAdapter = |
| 101 | BinaryFunctionAdapter<absl::StatusOr<BytesValue>, const BytesValue&, |
| 102 | const BytesValue&>; |
| 103 | return BytesCatFnAdapter::RegisterGlobalOverload(cel::builtin::kAdd, |
| 104 | &ConcatBytes, registry); |
| 105 | } |
| 106 | |
| 107 | } // namespace |
| 108 |
no outgoing calls
no test coverage detected