MCPcopy Create free account
hub / github.com/darklynx/request-baskets / TestArrayFlags

Function TestArrayFlags

config_test.go:22–30  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

20}
21
22func TestArrayFlags(t *testing.T) {
23 var flags arrayFlags
24 flags.Set("123")
25 flags.Set("abc")
26 flags.Set("xyz")
27 flags.Set("abc")
28
29 assert.Equal(t, "123,abc,xyz,abc", flags.String(), "unexpected list of flags")
30}
31
32func TestNormalizePrefix(t *testing.T) {
33 assert.Empty(t, normalizePrefix(""), "expected empty prefix after normalization")

Callers

nothing calls this directly

Calls 2

SetMethod · 0.95
StringMethod · 0.95

Tested by

no test coverage detected