(ctx context.Context, _ string, logs io.Writer)
| 100 | } |
| 101 | |
| 102 | func (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 | } |
nothing calls this directly
no test coverage detected