test: fix PackageUpdateServiceTests override signature#715
Conversation
Reviewer's guide (collapsed on small PRs)Reviewer's GuideUpdates the Unity test subclass TestablePackageUpdateService to match the updated PackageUpdateService.FetchLatestVersionFromGitHub method signature by adding the required branch parameter, fixing a compiler override error in tests. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughA test utility class method signature was updated to accept a branch parameter, aligning the test override with changes made to the base service class's Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~5 minutes Possibly related PRs
Poem
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- In the test double override of FetchLatestVersionFromGitHub(string branch), consider either asserting on the expected branch value or renaming the parameter to '_' to make it explicit that the argument is intentionally unused in this context.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- In the test double override of FetchLatestVersionFromGitHub(string branch), consider either asserting on the expected branch value or renaming the parameter to '_' to make it explicit that the argument is intentionally unused in this context.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Summary
Why
PackageUpdateService.FetchLatestVersionFromGitHub now takes a branch parameter, but the test subclass still overrode the old no-arg method.
Change
Summary by Sourcery
Tests:
Summary by CodeRabbit
Note: This is an internal testing change with no user-facing impact.