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

Function Parse

common/navigable_ast_test.cc:39–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37using ::testing::SizeIs;
38
39absl::StatusOr<std::unique_ptr<Ast>> Parse(absl::string_view expr) {
40 static const auto* parser = cel::NewParserBuilder()->Build()->release();
41 CEL_ASSIGN_OR_RETURN(auto source, cel::NewSource(expr));
42 return parser->Parse(*source);
43}
44
45TEST(NavigableAst, Basic) {
46 Expr const_node;

Callers 7

ASSERT_OK_AND_ASSIGNFunction · 0.70
TESTFunction · 0.70
parseAddressFunction · 0.50
parseAddressOrZeroFunction · 0.50
parseAddressMatcherFunction · 0.50
ParseAndEvaluateFunction · 0.50
RegisterTestsFromFileFunction · 0.50

Calls 4

NewParserBuilderFunction · 0.85
releaseMethod · 0.45
BuildMethod · 0.45
ParseMethod · 0.45

Tested by

no test coverage detected