MCPcopy Create free account
hub / github.com/flyteorg/flyte / TestSyncSet_Contains

Function TestSyncSet_Contains

flytestdlib/cache/sync_set_test.go:34–49  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

32}
33
34func TestSyncSet_Contains(t *testing.T) {
35 s := newSyncSet()
36 count := 1000
37 for i := 0; i < count; i++ {
38 s.Insert(i)
39 }
40
41 for i := 0; i < count; i++ {
42 assert.True(t, s.Contains(i))
43 s.Remove(i)
44 }
45
46 for i := 0; i < count; i++ {
47 assert.False(t, s.Contains(i))
48 }
49}

Callers

nothing calls this directly

Calls 4

newSyncSetFunction · 0.70
ContainsMethod · 0.65
InsertMethod · 0.45
RemoveMethod · 0.45

Tested by

no test coverage detected