MCPcopy Create free account
hub / github.com/cel-expr/cel-go / customPolicyParserOption

Function customPolicyParserOption

tools/celtest/test_runner_test.go:124–129  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

122}
123
124func customPolicyParserOption() policy.ParserOption {
125 return func(p *policy.Parser) (*policy.Parser, error) {
126 p.TagVisitor = customTagHandler{TagVisitor: policy.DefaultTagVisitor()}
127 return p, nil
128 }
129}
130
131func ParsePolicyVariables(metadata map[string]any) cel.EnvOption {
132 var variables []*decls.VariableDecl

Callers 2

TestCoverageStatsFunction · 0.85
setupTestsFunction · 0.85

Calls 1

DefaultTagVisitorFunction · 0.92

Tested by

no test coverage detected