MCPcopy
hub / github.com/cortexlabs/cortex / TestAdd

Function TestAdd

pkg/lib/sets/strset/strset_test.go:43–48  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

41}
42
43func TestAdd(t *testing.T) {
44 set := strset.New()
45 set.Add("a")
46 set.Add("b", "c")
47 require.Equal(t, set, strset.New("a", "b", "c"))
48}
49
50func TestRemove(t *testing.T) {
51 set := strset.New("a", "b")

Callers

nothing calls this directly

Calls 3

NewFunction · 0.92
EqualMethod · 0.80
AddMethod · 0.45

Tested by

no test coverage detected