(t *testing.T)
| 215 | } |
| 216 | |
| 217 | func 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 | |
| 227 | func TestJSONTopLevelSlice(t *testing.T) { |
| 228 | slice, err := objx.FromJSONSlice(`[{"id": 10000001}, {"id": 42}]`) |
nothing calls this directly
no test coverage detected
searching dependent graphs…