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

Method NewMatch

policy/parser.go:669–673  ·  view source on GitHub ↗

NewMatch creates a new Match instance with an ID associated with the YAML node.

(node *yaml.Node)

Source from the content-addressed store, hash-verified

667
668// NewMatch creates a new Match instance with an ID associated with the YAML node.
669func (p *parserImpl) NewMatch(node *yaml.Node) (*Match, int64) {
670 id := p.CollectMetadata(node)
671 m := NewMatch(id)
672 return m, id
673}
674
675// NewString creates a new ValueString from the YAML node.
676func (p *parserImpl) NewString(node *yaml.Node) ValueString {

Callers

nothing calls this directly

Calls 2

CollectMetadataMethod · 0.95
NewMatchFunction · 0.85

Tested by

no test coverage detected