You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 thatc.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.
The text was updated successfully, but these errors were encountered: