MCPcopy
hub / github.com/redis/go-redis / assertAttributeContains

Function assertAttributeContains

extra/redisotel/tracing_test.go:671–679  ·  view source on GitHub ↗
(t *testing.T, attrs []attribute.KeyValue, attr attribute.KeyValue)

Source from the content-addressed store, hash-verified

669}
670
671func assertAttributeContains(t *testing.T, attrs []attribute.KeyValue, attr attribute.KeyValue) {
672 t.Helper()
673 for _, a := range attrs {
674 if a == attr {
675 return
676 }
677 }
678 t.Fatalf("attribute %v not found", attr)
679}

Calls

no outgoing calls

Tested by

no test coverage detected