(t *testing.T)
| 384 | } |
| 385 | |
| 386 | func TestBindUnmarshalParamAnonymousFieldPtrNil(t *testing.T) { |
| 387 | e := New() |
| 388 | req := httptest.NewRequest(http.MethodGet, "/?baz=1", nil) |
| 389 | rec := httptest.NewRecorder() |
| 390 | c := e.NewContext(req, rec) |
| 391 | result := struct { |
| 392 | *Bar |
| 393 | }{} |
| 394 | err := c.Bind(&result) |
| 395 | if assert.NoError(t, err) { |
| 396 | assert.Nil(t, result.Bar) |
| 397 | } |
| 398 | } |
| 399 | |
| 400 | func TestBindUnmarshalParamAnonymousFieldPtrCustomTag(t *testing.T) { |
| 401 | e := New() |
nothing calls this directly
no test coverage detected
searching dependent graphs…