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

Function New

pkg/lib/sets/strset/strset.go:33–37  ·  view source on GitHub ↗

New creates and initializes a new Set.

(ts ...string)

Source from the content-addressed store, hash-verified

31
32// New creates and initializes a new Set.
33func New(ts ...string) Set {
34 s := make(Set)
35 s.Add(ts...)
36 return s
37}
38
39func FromSlice(items []string) Set {
40 return New(items...)

Callers 15

GetClusterStacksFunction · 0.92
validateMethod · 0.92
getStaleEksNodeGroupsFunction · 0.92
TelemetryEventMethod · 0.92
validateSubnetsMethod · 0.92
GetContainerNamesFunction · 0.92
ErrorDuplicateNameFunction · 0.92
FlattenAllStrValuesAsSetFunction · 0.92
findStaleCachedErrorsFunction · 0.92

Calls 1

AddMethod · 0.45

Tested by 15

TestParseInstanceTypeFunction · 0.74
TestNewFunction · 0.74
TestAddFunction · 0.74
TestRemoveFunction · 0.74
TestPopFunction · 0.74
TestPop2Function · 0.74
TestHasFunction · 0.74
TestHasAnyFunction · 0.74
TestClearFunction · 0.74
TestIsEqualFunction · 0.74
TestIsSubsetFunction · 0.74
TestIsSupersetFunction · 0.74