Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
72
func
TestMapMustFromJSONWithError(t *testing.T) {
73
_, err := objx.FromJSON(`
"name"
:
"Mat"
}`)
74
assert.Error(t, err)
75
}
76
77
func
TestMapFromJSON(t *testing.T) {
78
o := objx.MustFromJSON(`{
"name"
:
"Mat"
}`)
Callers
nothing calls this directly
Calls
2
FromJSON
Function · 0.92
Error
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…