Skip to content
New issue

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

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

Already on GitHub? # to your account

Fixed some .gists() functions, and wrote tests. #606

Merged
merged 2 commits into from
Mar 17, 2024

Conversation

manchicken
Copy link
Contributor

@manchicken manchicken commented Mar 12, 2024

  • All three gist star-related functions suppressed errors, which has been fixed
  • .gists().is_starred()
    • 204 case covered
    • 404 case covered
    • 500 case covered
    • Now handles errors properly
  • .gists().star()
    • 204 case covered
    • 404 case covered
    • 500 case covered
    • Now handles errors properly
  • .gists().unstar()
    • 204 case covered
    • 304 case covered
    • 404 case covered
    • 500 case covered
    • Now handles errors properly
  • .gists().delete()
    • 204 case covered
    • 304 case covered
    • 404 case covered
    • 500 case covered
    • Now handles errors properly
  • Removed an unused import from src/api/checks.rs

- All three gist star-related functions suppressed errors, which has been fixed
- `.gists().is_starred()`
  - 204 case covered
  - 404 case covered
  - 500 case covered
  - Now handles errors properly
- `.gists().star()`
  - 204 case covered
  - 404 case covered
  - 500 case covered
  - Now handles errors properly
- `.gists().unstar()`
  - 204 case covered
  - 304 case covered
  - 404 case covered
  - 500 case covered
  - Now handles errors properly
- Removed an unused import from `src/api/checks.rs`
- Fixed the silent error cases
- Added tests for 204, 304, 404, and 500 cases
@XAMPPRocky
Copy link
Owner

Thank you for your PR!

@XAMPPRocky XAMPPRocky merged commit 45d6d80 into XAMPPRocky:main Mar 17, 2024
10 checks passed
@github-actions github-actions bot mentioned this pull request Mar 15, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants