MCPcopy
hub / github.com/grafana/dskit / TestMetadata_Has

Function TestMetadata_Has

tenant/metadata_test.go:72–77  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

70}
71
72func TestMetadata_Has(t *testing.T) {
73 var md Metadata
74 md.Set("key", "value")
75 assert.True(t, md.Has("key"))
76 assert.False(t, md.Has("missing"))
77}
78
79func TestMetadata_Get(t *testing.T) {
80 var md Metadata

Callers

nothing calls this directly

Calls 2

SetMethod · 0.95
HasMethod · 0.95

Tested by

no test coverage detected