Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable SDK errors to be testable #1676

Open
jrschumacher opened this issue Oct 23, 2024 · 0 comments · May be fixed by #1680
Open

Enable SDK errors to be testable #1676

jrschumacher opened this issue Oct 23, 2024 · 0 comments · May be fixed by #1680

Comments

@jrschumacher
Copy link
Member

Many of the SDK errors are not testable with errors.Is() and not usable for exact unit test assertions without string comparisons.

Acceptance Criteria

  • replace all errors with a defined error
  • replace any %w with errors.Join()
jrschumacher added a commit that referenced this issue Oct 23, 2024
Expose errors as variables so they can be tested with `errors.Is()`.
Ensure errors are in a single file for DX maintenance with regards to grammar and support.

Close #1676
@jrschumacher jrschumacher linked a pull request Oct 23, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant