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

Function TestMapFromURLQueryWithError

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

Source from the content-addressed store, hash-verified

215}
216
217func TestMapFromURLQueryWithError(t *testing.T) {
218 m, err := objx.FromURLQuery("%")
219
220 assert.Error(t, err)
221 assert.Nil(t, m)
222 assert.Panics(t, func() {
223 objx.MustFromURLQuery("%")
224 })
225}
226
227func TestJSONTopLevelSlice(t *testing.T) {
228 slice, err := objx.FromJSONSlice(`[{"id": 10000001}, {"id": 42}]`)

Callers

nothing calls this directly

Calls 5

FromURLQueryFunction · 0.92
MustFromURLQueryFunction · 0.92
ErrorMethod · 0.45
NilMethod · 0.45
PanicsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…