MCPcopy
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
29func 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

ElementsMethod · 0.80
DiffMethod · 0.80

Tested by

no test coverage detected