TestContextFormFileFailed() — gin Function Reference
Architecture documentation for the TestContextFormFileFailed() function in context_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD 489465cd_9a02_7bc7_81b8_58d0bd62fd03["TestContextFormFileFailed()"] ebe0ae48_a62b_a38f_5bac_5bbbd96fc508["context_test.go"] 489465cd_9a02_7bc7_81b8_58d0bd62fd03 -->|defined in| ebe0ae48_a62b_a38f_5bac_5bbbd96fc508 style 489465cd_9a02_7bc7_81b8_58d0bd62fd03 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
context_test.go lines 170–181
func TestContextFormFileFailed(t *testing.T) {
buf := new(bytes.Buffer)
mw := multipart.NewWriter(buf)
mw.Close()
c, _ := CreateTestContext(httptest.NewRecorder())
c.Request, _ = http.NewRequest(http.MethodPost, "/", nil)
c.Request.Header.Set("Content-Type", mw.FormDataContentType())
c.engine.MaxMultipartMemory = 8 << 20
f, err := c.FormFile("file")
require.Error(t, err)
assert.Nil(t, f)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does TestContextFormFileFailed() do?
TestContextFormFileFailed() is a function in the gin codebase, defined in context_test.go.
Where is TestContextFormFileFailed() defined?
TestContextFormFileFailed() is defined in context_test.go at line 170.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free