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

updating errors coverage to 100% #400

Merged
merged 3 commits into from
Oct 21, 2023

Conversation

luthermonson
Copy link
Contributor

@luthermonson luthermonson commented Oct 7, 2023

📝 Description

There was a type error in my last test with *error vs. error which I missed so I fixed that and added tests for the rest of the file. Note to reviewer...

  • I changed the logic in coupleAPIErrors to return earlier instead of putting all the coupling logic inside an if block, spiritually the same but easier to follow.
  • I commented the client.SetDebug(true) in generic html error because it wasn't really benefiting anything and making the test output spammy. if you want it back, I'll happily uncomment it

What does this PR do and why is this change necessary?
Rewrites the errors tests to give 100% coverage, because... tests.

✔️ How to Test

What are the steps to reproduce the issue or verify the changes?
make testunit

📷 Preview

If applicable, include a screenshot or code snippet of this change. Otherwise, please remove this section.

@luthermonson luthermonson requested a review from a team as a code owner October 7, 2023 16:52
Copy link
Contributor

@jriddle-linode jriddle-linode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@jriddle-linode jriddle-linode requested a review from a team October 11, 2023 19:42
@zliang-akamai zliang-akamai merged commit d209855 into linode:main Oct 21, 2023
3 checks passed
@luthermonson luthermonson deleted the errors-tests branch October 24, 2023 19:32
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 this pull request may close these issues.

3 participants