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

Function TestStringSliceTypeString

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

Source from the content-addressed store, hash-verified

75}
76
77func TestStringSliceTypeString(t *testing.T) {
78 m := objx.Map{
79 "string": []string{"foo", "bar"},
80 }
81
82 assert.Equal(t, []string{"foo", "bar"}, m.Get("string").StringSlice())
83}
84
85func TestStringSliceTypeBool(t *testing.T) {
86 m := objx.Map{

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…