(t *testing.T)
| 632 | } |
| 633 | |
| 634 | func TestBindingDefaultValueFormPost(t *testing.T) { |
| 635 | req := createDefaultFormPostRequest(t) |
| 636 | var obj FooDefaultBarStruct |
| 637 | require.NoError(t, FormPost.Bind(req, &obj)) |
| 638 | |
| 639 | assert.Equal(t, "bar", obj.Foo) |
| 640 | assert.Equal(t, "hello", obj.Bar) |
| 641 | } |
| 642 | |
| 643 | func TestBindingFormPostForMap(t *testing.T) { |
| 644 | req := createFormPostRequestForMap(t) |
nothing calls this directly
no test coverage detected