refactor(#4780): remove unnecessary ContainsFiles.java class and update simian.yml#4782
Conversation
…AssembleIT references
📝 WalkthroughWalkthroughThis PR removes a duplicate test utility class Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (3)
💤 Files with no reviewable changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (13)
🔇 Additional comments (5)
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.
Pull request overview
This PR removes the duplicate ContainsFiles class from the eo-integration-tests module and updates related test code to use the standard Hamcrest FileMatchers instead. This resolves issue #4780 by eliminating code duplication, as the same class already exists in the eo-maven-plugin module.
Key Changes:
- Removed the duplicate
ContainsFiles.javaclass fromeo-integration-tests - Replaced glob-based file matching with direct file existence checking using
FileMatchers.anExistingFile() - Updated Simian workflow configuration to remove the now-unnecessary exclusion for
ContainsFiles.java
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
eo-integration-tests/src/test/java/org/eolang/maven/ContainsFiles.java |
Deleted duplicate helper class that was redundant with the version in eo-maven-plugin |
eo-integration-tests/src/test/java/org/eolang/maven/MjAssembleIT.java |
Updated test to use standard FileMatchers.anExistingFile() instead of custom ContainsFiles matcher, and renamed appendItself method to the more descriptive registerAssemble |
.github/workflows/simian.yml |
Removed the exclusion for ContainsFiles.java since the duplicate no longer exists |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
🚀 Performance AnalysisAll benchmarks are within the acceptable range. No critical degradation detected (threshold is 100%). Please refer to the detailed report for more information. Click to see the detailed report
|
|
@yegor256 could you take a look, please? |
This PR removes the unnecessary
ContainsFilesclass and updates the workflow configuration insimian.yml.Fixes #4780
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.