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

Function newTestAPI

agent/agentproc/api_test.go:119–122  ·  view source on GitHub ↗

newTestAPI creates a new API with a test logger and default execer, returning the handler and API.

(t *testing.T)

Source from the content-addressed store, hash-verified

117// newTestAPI creates a new API with a test logger and default
118// execer, returning the handler and API.
119func newTestAPI(t *testing.T) http.Handler {
120 t.Helper()
121 return newTestAPIWithOptions(t, nil, nil)
122}
123
124// newTestAPIWithUpdateEnv creates a new API with an optional
125// updateEnv hook for testing environment injection.

Callers 5

TestStartProcessFunction · 0.70
TestListProcessesFunction · 0.70
TestProcessOutputFunction · 0.70
TestSignalProcessFunction · 0.70
TestProcessLifecycleFunction · 0.70

Calls 2

newTestAPIWithOptionsFunction · 0.85
HelperMethod · 0.65

Tested by

no test coverage detected