MCPcopy Create free account
hub / github.com/astercloud/aster / TestServerRoomsList

Function TestServerRoomsList

server/server_test.go:133–144  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

131}
132
133func 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

Callers

nothing calls this directly

Calls 4

setupTestServerFunction · 0.85
ServeHTTPMethod · 0.45
RouterMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected