(t *testing.T)
| 131 | } |
| 132 | |
| 133 | func TestServerRoomsList(t *testing.T) { |
| 134 | srv, cleanup := setupTestServer(t) |
| 135 | defer cleanup() |
| 136 | |
| 137 | req := httptest.NewRequest(http.MethodGet, "/v1/rooms", nil) |
| 138 | w := httptest.NewRecorder() |
| 139 | |
| 140 | srv.Router().ServeHTTP(w, req) |
| 141 | |
| 142 | assert.Equal(t, http.StatusOK, w.Code) |
| 143 | assert.Contains(t, w.Body.String(), "success") |
| 144 | } |
| 145 | |
| 146 | // Agent Handler Tests |
| 147 |
nothing calls this directly
no test coverage detected