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

Method ScriptCompleted

agent/agenttest/client.go:418–424  ·  view source on GitHub ↗
(_ context.Context, req *agentproto.WorkspaceAgentScriptCompletedRequest)

Source from the content-addressed store, hash-verified

416}
417
418func (f *FakeAgentAPI) ScriptCompleted(_ context.Context, req *agentproto.WorkspaceAgentScriptCompletedRequest) (*agentproto.WorkspaceAgentScriptCompletedResponse, error) {
419 f.Lock()
420 f.timings = append(f.timings, req.GetTiming())
421 f.Unlock()
422
423 return &agentproto.WorkspaceAgentScriptCompletedResponse{}, nil
424}
425
426func (f *FakeAgentAPI) ReportConnection(_ context.Context, req *agentproto.ReportConnectionRequest) (*emptypb.Empty, error) {
427 f.Lock()

Callers

nothing calls this directly

Calls 3

GetTimingMethod · 0.80
LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected