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

Function setupWorkspaceForAgent

codersdk/toolsdk/toolsdk_test.go:46–49  ·  view source on GitHub ↗

setupWorkspaceForAgent creates a workspace setup exactly like main SSH tests nolint:gocritic // This is in a test package and does not end up in the build

(t *testing.T, opts *coderdtest.Options)

Source from the content-addressed store, hash-verified

44// setupWorkspaceForAgent creates a workspace setup exactly like main SSH tests
45// nolint:gocritic // This is in a test package and does not end up in the build
46func setupWorkspaceForAgent(t *testing.T, opts *coderdtest.Options) (*codersdk.Client, database.WorkspaceTable, string) {
47 t.Helper()
48 return setupWorkspaceForAgentWithName(t, opts, "myworkspace")
49}
50
51// setupWorkspaceForAgentWithName creates a workspace setup exactly like main
52// SSH tests, but with a caller-provided workspace name.

Callers 3

TestToolsFunction · 0.70

Calls 2

HelperMethod · 0.65

Tested by

no test coverage detected