MCPcopy Index your code
hub / github.com/coder/coder / getList

Function getList

agent/agentproc/api_test.go:58–68  ·  view source on GitHub ↗

getList sends a GET /list request and returns the recorder.

(t *testing.T, handler http.Handler)

Source from the content-addressed store, hash-verified

56
57// getList sends a GET /list request and returns the recorder.
58func getList(t *testing.T, handler http.Handler) *httptest.ResponseRecorder {
59 t.Helper()
60
61 ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitLong)
62 defer cancel()
63
64 w := httptest.NewRecorder()
65 r := httptest.NewRequestWithContext(ctx, http.MethodGet, "/list", nil)
66 handler.ServeHTTP(w, r)
67 return w
68}
69
70// getOutput sends a GET /{id}/output request and returns the
71// recorder.

Callers 2

TestStartProcessFunction · 0.85
TestListProcessesFunction · 0.85

Calls 2

HelperMethod · 0.65
ServeHTTPMethod · 0.45

Tested by

no test coverage detected