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

Method HasRule

policy/parser.go:391–393  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

389
390// HasRule indicates whether the rule field is set on a match.
391func (m *Match) HasRule() bool {
392 return m.rule != nil
393}
394
395// Rule returns the rule value, or nil if the rule is not set.
396func (m *Match) Rule() *Rule {

Callers 3

parseMatchInternalMethod · 0.95
exprLinesFromPolicyFunction · 0.80
compileRuleMethod · 0.80

Calls

no outgoing calls

Tested by 1

exprLinesFromPolicyFunction · 0.64