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

Method QualifyIfPresent

interpreter/attributes_test.go:1512–1518  ·  view source on GitHub ↗
(vars Activation, obj any, presenceOnly bool)

Source from the content-addressed store, hash-verified

1510}
1511
1512func (q *nestedMsgQualifier) QualifyIfPresent(vars Activation, obj any, presenceOnly bool) (any, bool, error) {
1513 pb := obj.(*proto3pb.TestAllTypes_NestedMessage)
1514 if pb.GetBb() == 0 {
1515 return nil, false, nil
1516 }
1517 return pb.GetBb(), true, nil
1518}
1519
1520func addQualifier(t testing.TB, attr Attribute, qual Qualifier) Attribute {
1521 t.Helper()

Callers

nothing calls this directly

Calls 1

GetBbMethod · 0.45

Tested by

no test coverage detected