(t *testing.T)
| 104 | } |
| 105 | |
| 106 | func TestServerSystemInfo(t *testing.T) { |
| 107 | srv, cleanup := setupTestServer(t) |
| 108 | defer cleanup() |
| 109 | |
| 110 | req := httptest.NewRequest(http.MethodGet, "/v1/system/info", nil) |
| 111 | w := httptest.NewRecorder() |
| 112 | |
| 113 | srv.Router().ServeHTTP(w, req) |
| 114 | |
| 115 | assert.Equal(t, http.StatusOK, w.Code) |
| 116 | assert.Contains(t, w.Body.String(), "version") |
| 117 | assert.Contains(t, w.Body.String(), "go_version") |
| 118 | } |
| 119 | |
| 120 | func TestServerPoolStats(t *testing.T) { |
| 121 | srv, cleanup := setupTestServer(t) |
nothing calls this directly
no test coverage detected