Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/docker/compose
/ TestSet_Has
Function
TestSet_Has
pkg/utils/set_test.go:23–27 ·
view source on GitHub ↗
(t *testing.T)
Source
from the content-addressed store, hash-verified
21
)
22
23
func
TestSet_Has(t *testing.T) {
24
x := NewSet[string](
"value"
)
25
assert.Check(t, x.Has(
"value"
))
26
assert.Check(t, !x.Has(
"VALUE"
))
27
}
28
29
func
TestSet_Diff(t *testing.T) {
30
a := NewSet[int](1, 2)
Callers
nothing calls this directly
Calls
1
Has
Method · 0.80
Tested by
no test coverage detected