MCPcopy Create free account
hub / github.com/stretchr/objx / TestStringSliceTypeOther

Function TestStringSliceTypeOther

value_test.go:135–142  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

133}
134
135func TestStringSliceTypeOther(t *testing.T) {
136 m := objx.Map{
137 "other": "foo",
138 }
139
140 assert.Equal(t, []string{}, m.Get("other").StringSlice())
141 assert.Equal(t, []string{"bar"}, m.Get("other").StringSlice([]string{"bar"}))
142}

Callers

nothing calls this directly

Calls 3

GetMethod · 0.95
StringSliceMethod · 0.80
EqualMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…