jordanpartridge / jordanpartridge.us

My Personal website, featuring home page blogs, projects strava integration of recent rides and Black Jack coming soon!
https://jordanpartridge.us
1 stars 0 forks source link

Enhance Test Suite for DrawCard Class #83

Closed coderabbitai[bot] closed 1 month ago

coderabbitai[bot] commented 1 month ago

Original Comment:

Great test coverage! Consider enhancing edge cases and input validation.

The test suite for the DrawCard class is comprehensive and well-structured, covering all major functionalities including constructor behavior, default values, exception handling, HTTP method, and endpoint resolution. The tests use appropriate methodologies and are clear and readable.

To further improve the test suite, consider:

  1. Adding more edge case tests, especially for constructor inputs (e.g., very long deck names, maximum allowed card count).
  2. Expanding input validation tests (e.g., negative card counts, special characters in deck names).
  3. Testing URL encoding for the endpoint resolution with various special characters.
  4. Adding a test for the maximum allowed card count, if there is one.

These additions would make the test suite more robust and help catch potential edge case bugs.

Acceptance Criteria:

Related Links: