(t *testing.T)
| 197 | } |
| 198 | |
| 199 | func TestRouterGroupCombineHandlersTooManyHandlers(t *testing.T) { |
| 200 | group := &RouterGroup{ |
| 201 | Handlers: make(HandlersChain, MaxHandlers), // Assume group already has MaxHandlers middleware |
| 202 | } |
| 203 | tooManyHandlers := make(HandlersChain, MaxHandlers) // Add MaxHandlers more, total 2 * MaxHandlers |
| 204 | |
| 205 | // This should trigger panic |
| 206 | assert.Panics(t, func() { |
| 207 | group.combineHandlers(tooManyHandlers) |
| 208 | }, "should panic due to too many handlers") |
| 209 | } |
| 210 | |
| 211 | func TestRouterGroupCombineHandlersEmptySliceNotNil(t *testing.T) { |
| 212 | group := &RouterGroup{ |
nothing calls this directly
no test coverage detected