(t *testing.T)
| 92 | } |
| 93 | |
| 94 | func TestServerMetrics(t *testing.T) { |
| 95 | srv, cleanup := setupTestServer(t) |
| 96 | defer cleanup() |
| 97 | |
| 98 | req := httptest.NewRequest(http.MethodGet, "/metrics", nil) |
| 99 | w := httptest.NewRecorder() |
| 100 | |
| 101 | srv.Router().ServeHTTP(w, req) |
| 102 | |
| 103 | assert.Equal(t, http.StatusOK, w.Code) |
| 104 | } |
| 105 | |
| 106 | func TestServerSystemInfo(t *testing.T) { |
| 107 | srv, cleanup := setupTestServer(t) |
nothing calls this directly
no test coverage detected