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

Function TestMapMustFromURLQuery

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

Source from the content-addressed store, hash-verified

207}
208
209func TestMapMustFromURLQuery(t *testing.T) {
210 m := objx.MustFromURLQuery("name=tyler&state=UT")
211
212 require.NotNil(t, m)
213 assert.Equal(t, "tyler", m.Get("name").Str())
214 assert.Equal(t, "UT", m.Get("state").Str())
215}
216
217func TestMapFromURLQueryWithError(t *testing.T) {
218 m, err := objx.FromURLQuery("%")

Callers

nothing calls this directly

Calls 5

MustFromURLQueryFunction · 0.92
StrMethod · 0.80
GetMethod · 0.80
NotNilMethod · 0.45
EqualMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…