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

Function TestStringSliceTypeBool

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

Source from the content-addressed store, hash-verified

83}
84
85func TestStringSliceTypeBool(t *testing.T) {
86 m := objx.Map{
87 "bool": []bool{true, false},
88 }
89
90 assert.Equal(t, []string{"true", "false"}, m.Get("bool").StringSlice())
91}
92
93func TestStringSliceTypeInt(t *testing.T) {
94 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…