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

Function setupAgent

agent/agent_test.go:3795–3803  ·  view source on GitHub ↗
(t testing.TB, metadata agentsdk.Manifest, ptyTimeout time.Duration, opts ...func(*agenttest.Client, *agent.Options))

Source from the content-addressed store, hash-verified

3793}
3794
3795func setupAgent(t testing.TB, metadata agentsdk.Manifest, ptyTimeout time.Duration, opts ...func(*agenttest.Client, *agent.Options)) (
3796 workspacesdk.AgentConn,
3797 *agenttest.Client,
3798 <-chan *proto.Stats,
3799 afero.Fs,
3800 agent.Agent,
3801) {
3802 return setupAgentWithSecrets(t, metadata, nil, ptyTimeout, opts...)
3803}
3804
3805// setupAgentWithSecrets is like setupAgent but also injects user
3806// secrets into the agent's proto manifest. Separate from setupAgent

Calls 1

setupAgentWithSecretsFunction · 0.85

Tested by

no test coverage detected