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

Method AddMatch

policy/parser.go:272–274  ·  view source on GitHub ↗

AddMatch addes a Match to the rule.

(m *Match)

Source from the content-addressed store, hash-verified

270
271// AddMatch addes a Match to the rule.
272func (r *Rule) AddMatch(m *Match) {
273 r.matches = append(r.matches, m)
274}
275
276// AddVariable adds a variable to the rule.
277func (r *Rule) AddVariable(v *Variable) {

Callers 2

parseMatchesMethod · 0.80
RuleTagMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected