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

Function TestStringTypeOther

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

Source from the content-addressed store, hash-verified

65}
66
67func TestStringTypeOther(t *testing.T) {
68 m := objx.Map{
69 "other": []string{"foo", "bar"},
70 "nilValue": nil,
71 }
72
73 assert.Equal(t, "[]string{\"foo\", \"bar\"}", m.Get("other").String())
74 assert.Equal(t, "", m.Get("nilValue").String())
75}
76
77func TestStringSliceTypeString(t *testing.T) {
78 m := objx.Map{

Callers

nothing calls this directly

Calls 3

GetMethod · 0.95
StringMethod · 0.80
EqualMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…