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

Function getOutputWithWaitCtx

agent/agentproc/api_test.go:938–945  ·  view source on GitHub ↗
(ctx context.Context, t *testing.T, handler http.Handler, id string)

Source from the content-addressed store, hash-verified

936}
937
938func getOutputWithWaitCtx(ctx context.Context, t *testing.T, handler http.Handler, id string) *httptest.ResponseRecorder {
939 t.Helper()
940 path := fmt.Sprintf("/%s/output?wait=true", id)
941 req := httptest.NewRequestWithContext(ctx, http.MethodGet, path, nil)
942 w := httptest.NewRecorder()
943 handler.ServeHTTP(w, req)
944 return w
945}
946
947func TestSignalProcess(t *testing.T) {
948 t.Parallel()

Callers 2

TestProcessOutputFunction · 0.85
getOutputWithWaitFunction · 0.85

Calls 2

HelperMethod · 0.65
ServeHTTPMethod · 0.45

Tested by

no test coverage detected