Home / Function/ TestToFiberHandler_ExpressTwoParamsWithError() — fiber Function Reference

TestToFiberHandler_ExpressTwoParamsWithError() — fiber Function Reference

Architecture documentation for the TestToFiberHandler_ExpressTwoParamsWithError() function in adapter_test.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  a48783fb_11c6_ffef_75d6_acc48c1b2987["TestToFiberHandler_ExpressTwoParamsWithError()"]
  3ad7a4ef_7f07_008c_234d_52c9a342aa98["adapter_test.go"]
  a48783fb_11c6_ffef_75d6_acc48c1b2987 -->|defined in| 3ad7a4ef_7f07_008c_234d_52c9a342aa98
  3776f9ef_b978_a0be_2199_412bb0eee3ec["newTestCtx()"]
  a48783fb_11c6_ffef_75d6_acc48c1b2987 -->|calls| 3776f9ef_b978_a0be_2199_412bb0eee3ec
  style a48783fb_11c6_ffef_75d6_acc48c1b2987 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

adapter_test.go lines 93–109

func TestToFiberHandler_ExpressTwoParamsWithError(t *testing.T) {
	t.Parallel()

	app, ctx := newTestCtx(t)

	handler := func(req Req, res Res) error {
		assert.Equal(t, app, req.App())
		assert.Equal(t, app, res.App())
		return res.SendString("express")
	}

	converted, ok := toFiberHandler(handler)
	require.True(t, ok)

	require.NoError(t, converted(ctx))
	require.Equal(t, "express", string(ctx.Response().Body()))
}

Domain

Subdomains

Defined In

Calls

Frequently Asked Questions

What does TestToFiberHandler_ExpressTwoParamsWithError() do?
TestToFiberHandler_ExpressTwoParamsWithError() is a function in the fiber codebase, defined in adapter_test.go.
Where is TestToFiberHandler_ExpressTwoParamsWithError() defined?
TestToFiberHandler_ExpressTwoParamsWithError() is defined in adapter_test.go at line 93.
What does TestToFiberHandler_ExpressTwoParamsWithError() call?
TestToFiberHandler_ExpressTwoParamsWithError() 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