Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
72
func
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
79
func
TestMetadata_Get(t *testing.T) {
80
var
md Metadata
Callers
nothing calls this directly
Calls
2
Set
Method · 0.95
Has
Method · 0.95
Tested by
no test coverage detected