MCPcopy
hub / github.com/gin-gonic/gin / TestBindingFormPostForMapFail

Function TestBindingFormPostForMapFail

binding/binding_test.go:651–656  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

649}
650
651func TestBindingFormPostForMapFail(t *testing.T) {
652 req := createFormPostRequestForMapFail(t)
653 var obj FooStructForMapType
654 err := FormPost.Bind(req, &obj)
655 require.Error(t, err)
656}
657
658func TestBindingFormFilesMultipart(t *testing.T) {
659 req := createFormFilesMultipartRequest(t)

Callers

nothing calls this directly

Calls 3

BindMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected