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

Function TestMapFromJSONWithError

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

Source from the content-addressed store, hash-verified

82}
83
84func TestMapFromJSONWithError(t *testing.T) {
85 var m objx.Map
86
87 assert.Panics(t, func() {
88 m = objx.MustFromJSON(`"name":"Mat"}`)
89 })
90 assert.Nil(t, m)
91}
92
93func TestConversionJSONInt(t *testing.T) {
94 jsonString :=

Callers

nothing calls this directly

Calls 3

MustFromJSONFunction · 0.92
PanicsMethod · 0.45
NilMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…