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

Function newTestAPI

coderd/debug_test.go:407–412  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

405}
406
407func newTestAPI(t *testing.T) (*codersdk.Client, io.Closer, *coderd.API) {
408 t.Helper()
409 client, closer, api := coderdtest.NewWithAPI(t, nil)
410 api.ProfileCollector = noopProfileCollector{}
411 return client, closer, api
412}
413
414func TestDebugCollectProfile(t *testing.T) {
415 t.Parallel()

Callers 1

TestDebugCollectProfileFunction · 0.70

Calls 2

NewWithAPIFunction · 0.92
HelperMethod · 0.65

Tested by

no test coverage detected