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

Function NewFakeAgentAPI

agent/agenttest/client.go:586–595  ·  view source on GitHub ↗
(t testing.TB, logger slog.Logger, manifest *agentproto.Manifest, statsCh chan *agentproto.Stats)

Source from the content-addressed store, hash-verified

584}
585
586func NewFakeAgentAPI(t testing.TB, logger slog.Logger, manifest *agentproto.Manifest, statsCh chan *agentproto.Stats) *FakeAgentAPI {
587 return &FakeAgentAPI{
588 t: t,
589 logger: logger.Named("FakeAgentAPI"),
590 manifest: manifest,
591 statsCh: statsCh,
592 startupCh: make(chan *agentproto.Startup, 100),
593 appHealthCh: make(chan *agentproto.BatchUpdateAppHealthRequest, 100),
594 }
595}

Callers 7

setupAppReporterFunction · 0.92
TestExecuteBasicFunction · 0.92
TestEnvFunction · 0.92
TestTimeoutFunction · 0.92
TestScriptReportsTimingFunction · 0.92
TestExecuteOptionsFunction · 0.92
NewClientWithSecretsFunction · 0.85

Calls 1

NamedMethod · 0.80

Tested by 6

setupAppReporterFunction · 0.74
TestExecuteBasicFunction · 0.74
TestEnvFunction · 0.74
TestTimeoutFunction · 0.74
TestScriptReportsTimingFunction · 0.74
TestExecuteOptionsFunction · 0.74