withRouteHandlers() — fiber Function Reference
Architecture documentation for the withRouteHandlers() function in adapter_test.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD 0ba29dbe_6ac4_3e52_572c_88fd521daa4b["withRouteHandlers()"] 3ad7a4ef_7f07_008c_234d_52c9a342aa98["adapter_test.go"] 0ba29dbe_6ac4_3e52_572c_88fd521daa4b -->|defined in| 3ad7a4ef_7f07_008c_234d_52c9a342aa98 c8bb23ac_7d6c_b77a_11f9_6c941fde8f0e["TestToFiberHandler_ExpressThreeParamsWithError()"] c8bb23ac_7d6c_b77a_11f9_6c941fde8f0e -->|calls| 0ba29dbe_6ac4_3e52_572c_88fd521daa4b b30ba666_b114_bf2a_3f74_febd5b3f2180["TestToFiberHandler_ExpressThreeParamsWithoutError()"] b30ba666_b114_bf2a_3f74_febd5b3f2180 -->|calls| 0ba29dbe_6ac4_3e52_572c_88fd521daa4b 4b5db832_05ba_95a2_a031_02aecd564147["TestToFiberHandler_ExpressNextNoArgWithErrorReturn()"] 4b5db832_05ba_95a2_a031_02aecd564147 -->|calls| 0ba29dbe_6ac4_3e52_572c_88fd521daa4b 3dc9c7e9_052f_df5b_3522_ec2b5733481b["TestToFiberHandler_ExpressNextWithErrorContinuesOnNil()"] 3dc9c7e9_052f_df5b_3522_ec2b5733481b -->|calls| 0ba29dbe_6ac4_3e52_572c_88fd521daa4b 2cf7c0d3_ced3_1f9d_0ac3_34bffd8df052["TestToFiberHandler_ExpressNextWithErrorShortCircuitsOnError()"] 2cf7c0d3_ced3_1f9d_0ac3_34bffd8df052 -->|calls| 0ba29dbe_6ac4_3e52_572c_88fd521daa4b 75e6aee8_e16e_abff_282f_3ad6354f7eb4["TestToFiberHandler_ExpressNextWithErrorReturn_ShortCircuitsOnNextError()"] 75e6aee8_e16e_abff_282f_3ad6354f7eb4 -->|calls| 0ba29dbe_6ac4_3e52_572c_88fd521daa4b e00611c8_aebf_62cd_61a9_d63ea4f4fbda["TestToFiberHandler_ExpressNextWithErrorReturnCallback_PropagatesNextError()"] e00611c8_aebf_62cd_61a9_d63ea4f4fbda -->|calls| 0ba29dbe_6ac4_3e52_572c_88fd521daa4b 74a356d3_a58b_3ee2_af16_d97ac7a7945c["TestToFiberHandler_ExpressNextWithErrorReturnCallback_ShortCircuitsOnNextError()"] 74a356d3_a58b_3ee2_af16_d97ac7a7945c -->|calls| 0ba29dbe_6ac4_3e52_572c_88fd521daa4b 214ff9bb_9ed6_98a2_0710_1268450b916e["TestToFiberHandler_ExpressNextWithErrorReturn_PrefersHandlerErrorOverNextError()"] 214ff9bb_9ed6_98a2_0710_1268450b916e -->|calls| 0ba29dbe_6ac4_3e52_572c_88fd521daa4b 1570a2ed_b1bc_889c_90aa_36f78a923fb9["TestToFiberHandler_ExpressNextWithErrorReturn_PropagatesNextErrorWhenNoReturnError()"] 1570a2ed_b1bc_889c_90aa_36f78a923fb9 -->|calls| 0ba29dbe_6ac4_3e52_572c_88fd521daa4b 6af6601b_6f03_b49e_6f6e_e2ea42ce87b2["TestToFiberHandler_ExpressNextWithErrorReturnCallback_StopsChainWithoutNextCall()"] 6af6601b_6f03_b49e_6f6e_e2ea42ce87b2 -->|calls| 0ba29dbe_6ac4_3e52_572c_88fd521daa4b bd8c8c09_9565_7b3c_3423_1f8c23b2cc4f["TestToFiberHandler_ExpressNextNoArgPropagatesError()"] bd8c8c09_9565_7b3c_3423_1f8c23b2cc4f -->|calls| 0ba29dbe_6ac4_3e52_572c_88fd521daa4b 7e5b5c79_268d_9807_3b54_75e2abb66b14["TestToFiberHandler_ExpressNextNoArgStopsChain()"] 7e5b5c79_268d_9807_3b54_75e2abb66b14 -->|calls| 0ba29dbe_6ac4_3e52_572c_88fd521daa4b style 0ba29dbe_6ac4_3e52_572c_88fd521daa4b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
adapter_test.go lines 82–91
func withRouteHandlers(t *testing.T, ctx *DefaultCtx, handlers ...Handler) {
t.Helper()
ctx.route = &Route{Handlers: handlers}
ctx.indexHandler = 0
t.Cleanup(func() {
ctx.route = nil
ctx.indexHandler = 0
})
}
Domain
Subdomains
Defined In
Called By
- TestToFiberHandler_ExpressNextNoArgPropagatesError()
- TestToFiberHandler_ExpressNextNoArgStopsChain()
- TestToFiberHandler_ExpressNextNoArgWithErrorReturn()
- TestToFiberHandler_ExpressNextWithErrorContinuesOnNil()
- TestToFiberHandler_ExpressNextWithErrorReturnCallback_PropagatesNextError()
- TestToFiberHandler_ExpressNextWithErrorReturnCallback_ShortCircuitsOnNextError()
- TestToFiberHandler_ExpressNextWithErrorReturnCallback_StopsChainWithoutNextCall()
- TestToFiberHandler_ExpressNextWithErrorReturn_PrefersHandlerErrorOverNextError()
- TestToFiberHandler_ExpressNextWithErrorReturn_PropagatesNextErrorWhenNoReturnError()
- TestToFiberHandler_ExpressNextWithErrorReturn_ShortCircuitsOnNextError()
- TestToFiberHandler_ExpressNextWithErrorShortCircuitsOnError()
- TestToFiberHandler_ExpressThreeParamsWithError()
- TestToFiberHandler_ExpressThreeParamsWithoutError()
Source
Frequently Asked Questions
What does withRouteHandlers() do?
withRouteHandlers() is a function in the fiber codebase, defined in adapter_test.go.
Where is withRouteHandlers() defined?
withRouteHandlers() is defined in adapter_test.go at line 82.
What calls withRouteHandlers()?
withRouteHandlers() is called by 13 function(s): TestToFiberHandler_ExpressNextNoArgPropagatesError, TestToFiberHandler_ExpressNextNoArgStopsChain, TestToFiberHandler_ExpressNextNoArgWithErrorReturn, TestToFiberHandler_ExpressNextWithErrorContinuesOnNil, TestToFiberHandler_ExpressNextWithErrorReturnCallback_PropagatesNextError, TestToFiberHandler_ExpressNextWithErrorReturnCallback_ShortCircuitsOnNextError, TestToFiberHandler_ExpressNextWithErrorReturnCallback_StopsChainWithoutNextCall, TestToFiberHandler_ExpressNextWithErrorReturn_PrefersHandlerErrorOverNextError, and 5 more.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free