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

Method Cleanup

scaletest/createusers/run.go:102–111  ·  view source on GitHub ↗
(ctx context.Context, _ string, logs io.Writer)

Source from the content-addressed store, hash-verified

100}
101
102func (r *Runner) Cleanup(ctx context.Context, _ string, logs io.Writer) error {
103 if r.user.ID != uuid.Nil {
104 err := r.client.DeleteUser(ctx, r.user.ID)
105 if err != nil {
106 _, _ = fmt.Fprintf(logs, "failed to delete user %q: %v\n", r.user.ID.String(), err)
107 return xerrors.Errorf("delete user: %w", err)
108 }
109 }
110 return nil
111}

Callers

nothing calls this directly

Calls 3

DeleteUserMethod · 0.80
StringMethod · 0.45
ErrorfMethod · 0.45

Tested by

no test coverage detected