(err error)
| 84 | } |
| 85 | |
| 86 | func fakeShutdownError(err error) func() { |
| 87 | old := serverShutdown |
| 88 | serverShutdown = func(server *http.Server, ctx context.Context) error { |
| 89 | return err |
| 90 | } |
| 91 | return func() { |
| 92 | serverShutdown = old |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | func port() int { |
| 97 | addr, err := net.ResolveTCPAddr("tcp", "localhost:0") |
no outgoing calls
no test coverage detected