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

Method VariableMatches

interpreter/attribute_patterns.go:100–102  ·  view source on GitHub ↗

VariableMatches returns true if the fully qualified variable matches the AttributePattern fully qualified variable name.

(variable string)

Source from the content-addressed store, hash-verified

98// VariableMatches returns true if the fully qualified variable matches the AttributePattern
99// fully qualified variable name.
100func (apat *AttributePattern) VariableMatches(variable string) bool {
101 return apat.variable == variable
102}
103
104// QualifierPatterns returns the set of AttributeQualifierPattern values on the AttributePattern.
105func (apat *AttributePattern) QualifierPatterns() []*AttributeQualifierPattern {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected