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

Function TestMapMustFromJSONWithError

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

Source from the content-addressed store, hash-verified

70}
71
72func TestMapMustFromJSONWithError(t *testing.T) {
73 _, err := objx.FromJSON(`"name":"Mat"}`)
74 assert.Error(t, err)
75}
76
77func TestMapFromJSON(t *testing.T) {
78 o := objx.MustFromJSON(`{"name":"Mat"}`)

Callers

nothing calls this directly

Calls 2

FromJSONFunction · 0.92
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…