Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
43
func
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
50
func
TestRemove(t *testing.T) {
51
set := strset.New(
"a"
,
"b"
)
Callers
nothing calls this directly
Calls
3
New
Function · 0.92
Equal
Method · 0.80
Add
Method · 0.45
Tested by
no test coverage detected