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

Function TestRouterGroupCombineHandlersEmptySliceNotNil

routergroup_test.go:211–219  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

209}
210
211func TestRouterGroupCombineHandlersEmptySliceNotNil(t *testing.T) {
212 group := &RouterGroup{
213 Handlers: HandlersChain{},
214 }
215
216 result := group.combineHandlers(HandlersChain{})
217 assert.NotNil(t, result, "result should not be nil even with empty handlers")
218 assert.Empty(t, result, "empty handlers should return empty chain")
219}

Callers

nothing calls this directly

Calls 1

combineHandlersMethod · 0.95

Tested by

no test coverage detected