-
Notifications
You must be signed in to change notification settings - Fork 2
Chore: Replace assertEquals with assertSame #48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Warning Rate limit exceeded@Meldiron has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 25 minutes and 28 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (1)
WalkthroughThis pull request updates test assertions across two VCS test files. In Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
tests/VCS/Adapter/GitHubTest.php(11 hunks)tests/VCS/Base.php(3 hunks)
🧰 Additional context used
🧬 Code graph analysis (2)
tests/VCS/Base.php (2)
src/VCS/Adapter.php (1)
createRepository(109-109)src/VCS/Adapter/Git/GitHub.php (1)
createRepository(85-95)
tests/VCS/Adapter/GitHubTest.php (1)
src/VCS/Adapter/Git/GitHub.php (4)
getEvent(621-715)getRepositoryTree(167-178)getRepositoryContent(209-238)getLatestCommit(515-540)
🪛 GitHub Actions: Tests
tests/VCS/Adapter/GitHubTest.php
[error] 126-126: PHPUnit failure: assertion that '1234' (string) is identical to 1234 (int) failed in GitHubTest::testgetEvent. Consider casting or comparing with == or adjust expected type.
🔇 Additional comments (2)
tests/VCS/Base.php (1)
49-49: Strict assertions here look correctThe switch to
assertSamefor the owner name, directory size, repositoryfull_name, and delete result uses clearly-typed literals (string/int/bool) that match the intended behavior and should help catch accidental type changes in the adapter.Also applies to: 122-123, 129-130, 138-141
tests/VCS/Adapter/GitHubTest.php (1)
117-123: Good move to strict comparisons across these testsUsing
assertSamefor branches, IDs, paths, content, exit codes, and commit metadata tightens the tests without changing intent and should make type regressions more visible. I don’t see any other type-mismatch risks in these conversions based on the literals and fixtures in use.Also applies to: 141-145, 169-182, 189-206, 284-291, 301-303, 315-317, 329-331, 340-342, 379-392
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.