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

Method HasRule

policy/parser.go:349–351  ·  view source on GitHub ↗

HasRule indicates whether the rule field is set on a match.

()

Source from the content-addressed store, hash-verified

347
348// HasRule indicates whether the rule field is set on a match.
349func (m *Match) HasRule() bool {
350 return m.rule != nil
351}
352
353// Rule returns the rule value, or nil if the rule is not set.
354func (m *Match) Rule() *Rule {

Callers 3

ParseMatchMethod · 0.95
exprLinesFromPolicyFunction · 0.80
compileRuleMethod · 0.80

Calls

no outgoing calls

Tested by 1

exprLinesFromPolicyFunction · 0.64