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

Function makeOptQualifier

interpreter/attributes_test.go:1346–1353  ·  view source on GitHub ↗
(t testing.TB, attrs AttributeFactory, fieldType *types.Type, qualID int64, val any)

Source from the content-addressed store, hash-verified

1344}
1345
1346func makeOptQualifier(t testing.TB, attrs AttributeFactory, fieldType *types.Type, qualID int64, val any) Qualifier {
1347 t.Helper()
1348 qual, err := attrs.NewQualifier(fieldType, qualID, val, true)
1349 if err != nil {
1350 t.Fatalf("attrs.NewQualifier() failed: %v", err)
1351 }
1352 return qual
1353}
1354
1355func findField(t testing.TB, reg ref.TypeRegistry, typeName, field string) *ref.FieldType {
1356 t.Helper()

Callers 2

TestAttributesOptionalFunction · 0.85
TestQualifyIfPresentFunction · 0.85

Calls 1

NewQualifierMethod · 0.65

Tested by

no test coverage detected