MCPcopy Create free account
hub / github.com/caddyserver/caddy / CaddyModule

Method CaddyModule

admin_test.go:423–435  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

421}
422
423func (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
437func TestNewAdminHandlerRouterRegistration(t *testing.T) {
438 originalModules := make(map[string]ModuleInfo)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected