(t *testing.T)
| 685 | } |
| 686 | |
| 687 | func TestBindingFormMultipart(t *testing.T) { |
| 688 | req := createFormMultipartRequest(t) |
| 689 | var obj FooBarStruct |
| 690 | require.NoError(t, FormMultipart.Bind(req, &obj)) |
| 691 | |
| 692 | assert.Equal(t, "multipart/form-data", FormMultipart.Name()) |
| 693 | assert.Equal(t, "bar", obj.Foo) |
| 694 | assert.Equal(t, "foo", obj.Bar) |
| 695 | } |
| 696 | |
| 697 | func TestBindingFormMultipartForMap(t *testing.T) { |
| 698 | req := createFormMultipartRequestForMap(t) |
nothing calls this directly
no test coverage detected