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

Create error tests for functions that use storage.Client #142

Open
calvinmclean opened this issue Sep 12, 2023 · 0 comments
Open

Create error tests for functions that use storage.Client #142

calvinmclean opened this issue Sep 12, 2023 · 0 comments

Comments

@calvinmclean
Copy link
Owner

I realized that I can force storage client errors in tests by using a &storage.Client{} without the initializer. I just need to update functions to check that c.db != nil and return error instead of panic.

Then, I can go and re-add tests that get coverage on storage client errors at least in the cases where there is not multiple storage client calls in a row.

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

No branches or pull requests

1 participant