TestToFiberHandler_ExpressTwoParamsWithoutError() — fiber Function Reference
Architecture documentation for the TestToFiberHandler_ExpressTwoParamsWithoutError() function in adapter_test.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD 8e750683_3617_64b2_388b_690d00d87492["TestToFiberHandler_ExpressTwoParamsWithoutError()"] 3ad7a4ef_7f07_008c_234d_52c9a342aa98["adapter_test.go"] 8e750683_3617_64b2_388b_690d00d87492 -->|defined in| 3ad7a4ef_7f07_008c_234d_52c9a342aa98 3776f9ef_b978_a0be_2199_412bb0eee3ec["newTestCtx()"] 8e750683_3617_64b2_388b_690d00d87492 -->|calls| 3776f9ef_b978_a0be_2199_412bb0eee3ec style 8e750683_3617_64b2_388b_690d00d87492 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
adapter_test.go lines 111–126
func TestToFiberHandler_ExpressTwoParamsWithoutError(t *testing.T) {
t.Parallel()
app, ctx := newTestCtx(t)
handler := func(req Req, res Res) {
assert.Equal(t, app, req.App())
require.NoError(t, res.SendStatus(http.StatusCreated))
}
converted, ok := toFiberHandler(handler)
require.True(t, ok)
require.NoError(t, converted(ctx))
require.Equal(t, http.StatusCreated, ctx.Response().StatusCode())
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does TestToFiberHandler_ExpressTwoParamsWithoutError() do?
TestToFiberHandler_ExpressTwoParamsWithoutError() is a function in the fiber codebase, defined in adapter_test.go.
Where is TestToFiberHandler_ExpressTwoParamsWithoutError() defined?
TestToFiberHandler_ExpressTwoParamsWithoutError() is defined in adapter_test.go at line 111.
What does TestToFiberHandler_ExpressTwoParamsWithoutError() call?
TestToFiberHandler_ExpressTwoParamsWithoutError() calls 1 function(s): newTestCtx.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free