(t *testing.T)
| 79 | } |
| 80 | |
| 81 | func TestServerHealth(t *testing.T) { |
| 82 | srv, cleanup := setupTestServer(t) |
| 83 | defer cleanup() |
| 84 | |
| 85 | req := httptest.NewRequest(http.MethodGet, "/health", nil) |
| 86 | w := httptest.NewRecorder() |
| 87 | |
| 88 | srv.Router().ServeHTTP(w, req) |
| 89 | |
| 90 | assert.Equal(t, http.StatusOK, w.Code) |
| 91 | assert.Contains(t, w.Body.String(), "healthy") |
| 92 | } |
| 93 | |
| 94 | func TestServerMetrics(t *testing.T) { |
| 95 | srv, cleanup := setupTestServer(t) |
nothing calls this directly
no test coverage detected