Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/docker/compose
/ TestSet_Diff
Function
TestSet_Diff
pkg/utils/set_test.go:29–34 ·
view source on GitHub ↗
(t *testing.T)
Source
from the content-addressed store, hash-verified
27
}
28
29
func
TestSet_Diff(t *testing.T) {
30
a := NewSet[int](1, 2)
31
b := NewSet[int](2, 3)
32
assert.DeepEqual(t, []int{1}, a.Diff(b).Elements())
33
assert.DeepEqual(t, []int{3}, b.Diff(a).Elements())
34
}
Callers
nothing calls this directly
Calls
2
Elements
Method · 0.80
Diff
Method · 0.80
Tested by
no test coverage detected