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

Function StdLibCompiler

validator/timestamp_literal_validator_test.cc:36–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34using ::testing::HasSubstr;
35
36absl::StatusOr<std::unique_ptr<Compiler>> StdLibCompiler() {
37 auto builder =
38 NewCompilerBuilder(internal::GetSharedTestingDescriptorPool()).value();
39 builder->AddLibrary(StandardCompilerLibrary()).IgnoreError();
40 return builder->Build();
41}
42
43class TimestampLiteralValidatorTest : public ::testing::Test {
44 protected:

Callers

nothing calls this directly

Calls 5

StandardCompilerLibraryFunction · 0.85
NewCompilerBuilderFunction · 0.50
valueMethod · 0.45
AddLibraryMethod · 0.45
BuildMethod · 0.45

Tested by

no test coverage detected