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

Method setError

coderd/workspaceapps/stats_test.go:40–44  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

38}
39
40func (r *fakeReporter) setError(err error) {
41 r.mu.Lock()
42 defer r.mu.Unlock()
43 r.err = err
44}
45
46func (r *fakeReporter) ReportAppStats(_ context.Context, stats []workspaceapps.StatsReport) error {
47 r.mu.Lock()

Callers 1

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected