Skip to content

Conversation

@hackintoshrao
Copy link
Contributor

This PR adds explicit boundary test cases to existing tests:

  1. In test_uuid_checkpoint_patterns:

    • Tests UUID with exactly 35 characters (one too short)
    • Uses realistic UUID format: "3a0d65cd-4056-49b8-937b-95f9e3ee90e"
  2. In test_unknown_invalid_patterns:

    • Tests file with no extension (returns Ok(None))
    • Tests file with empty extension "." (returns Ok(Some) with Unknown type)

@codecov
Copy link

codecov bot commented Nov 14, 2024

Codecov Report

Attention: Patch coverage is 64.70588% with 6 lines in your changes missing coverage. Please review.

Project coverage is 80.20%. Comparing base (a8ed99f) to head (0d5ae77).

Files with missing lines Patch % Lines
kernel/src/path.rs 64.70% 4 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #485      +/-   ##
==========================================
- Coverage   80.22%   80.20%   -0.03%     
==========================================
  Files          61       61              
  Lines       13327    13342      +15     
  Branches    13327    13342      +15     
==========================================
+ Hits        10692    10701       +9     
- Misses       2090     2094       +4     
- Partials      545      547       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@scovich scovich left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

Copy link
Member

@zachschuermann zachschuermann left a comment

Choose a reason for hiding this comment

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

awesome LGTM thank you!

@zachschuermann
Copy link
Member

@hackintoshrao can you update this PR with the latest changes in main (rebase/merge) and then we can merge it :)

Karthic Rao added 2 commits November 16, 2024 09:08
This commit adds explicit boundary test cases to existing tests:

1. In test_uuid_checkpoint_patterns:
   - Tests UUID with exactly 35 characters (one too short)
   - Uses realistic UUID format: "3a0d65cd-4056-49b8-937b-95f9e3ee90e"

2. In test_unknown_invalid_patterns:
   - Tests file with no extension (returns Ok(None))
   - Tests file with empty extension "." (returns Ok(Some) with Unknown type)

formatting.
Removes the redundant first assertion
Keeps the more specific matches! assertion
Uses the more descriptive error message about the 35-character UUID
Makes the test more concise while maintaining clarity about what we're testing
@hackintoshrao hackintoshrao force-pushed the improvement/add-test-fix branch from 38ede16 to 0d5ae77 Compare November 16, 2024 03:40
@zachschuermann zachschuermann merged commit e63e1ad into delta-io:main Nov 16, 2024
17 of 19 checks passed
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