MustCloseServer is a test helper function for shutting down the server. Fail on error.
(tb testing.TB, s *Server)
| 61 | // MustCloseServer is a test helper function for shutting down the server. |
| 62 | // Fail on error. |
| 63 | func MustCloseServer(tb testing.TB, s *Server) { |
| 64 | tb.Helper() |
| 65 | if err := s.Close(); err != nil { |
| 66 | tb.Fatal(err) |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | // MustNewRequest creates a new HTTP request using the server's base URL and |
| 71 | // attaching a user session based on the context. |
no test coverage detected