()
| 421 | } |
| 422 | |
| 423 | func (m *mockModule) CaddyModule() ModuleInfo { |
| 424 | return ModuleInfo{ |
| 425 | ID: "admin.api.mock", |
| 426 | New: func() Module { |
| 427 | mm := &mockModule{ |
| 428 | mockRouter: mockRouter{ |
| 429 | routes: m.routes, |
| 430 | }, |
| 431 | } |
| 432 | return mm |
| 433 | }, |
| 434 | } |
| 435 | } |
| 436 | |
| 437 | func TestNewAdminHandlerRouterRegistration(t *testing.T) { |
| 438 | originalModules := make(map[string]ModuleInfo) |
nothing calls this directly
no outgoing calls
no test coverage detected