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

Function TestServerMetrics

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

Source from the content-addressed store, hash-verified

92}
93
94func 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
106func TestServerSystemInfo(t *testing.T) {
107 srv, cleanup := setupTestServer(t)

Callers

nothing calls this directly

Calls 3

setupTestServerFunction · 0.85
ServeHTTPMethod · 0.45
RouterMethod · 0.45

Tested by

no test coverage detected