Skip to content

🧪 Add edge case tests for version comparisons in dl_cleanup.py#99

Open
ManupaKDU wants to merge 2 commits into
mainfrom
testing-dl-cleanup-12758481474209516926
Open

🧪 Add edge case tests for version comparisons in dl_cleanup.py#99
ManupaKDU wants to merge 2 commits into
mainfrom
testing-dl-cleanup-12758481474209516926

Conversation

@ManupaKDU
Copy link
Copy Markdown

🎯 What: The __ge__ method in scripts/dl_cleanup.py's Entry class was pure logic without any test coverage. This PR introduces a dedicated test suite to ensure its correctness.
📊 Coverage: Scenarios covered include standard 4-part versions (1.2.3.4), missing patch numbers/letters (1.2.3a vs 1.2.3), equal versions, and mixed format comparisons.
Result: Test coverage for the core script comparison logic is now established, enabling safe future refactoring.

Signed-off-by: Jules jules@example.com


PR created automatically by Jules for task 12758481474209516926 started by @manupawickramasinghe

Adds unittests in `scripts/test_dl_cleanup.py` to cover the `__ge__`
method of the `Entry` class, properly validating edge cases for different
version string formats to prevent logic regressions.

Signed-off-by: Jules <jules@example.com>

Co-authored-by: manupawickramasinghe <73810867+manupawickramasinghe@users.noreply.github.com>
@google-labs-jules
Copy link
Copy Markdown

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

Adds unittests in `scripts/test_dl_cleanup.py` to cover the `__ge__`
method of the `Entry` class, properly validating edge cases for different
version string formats to prevent logic regressions.

Signed-off-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>

Co-authored-by: manupawickramasinghe <73810867+manupawickramasinghe@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant