Deduplicate identifiers in property tests generators#43
Conversation
📝 WalkthroughWalkthroughThe PR refactors the QuickCheck test generator for ChangesDeterministic Package Name Generation
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@test/TestSupport.hs`:
- Around line 54-58: The genBaseName function correctly generates unique names
but uses return; replace the final "return names" in genBaseName with "pure
names" to follow modern Haskell style and applicative-preferred idioms (function
name: genBaseName).
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 5ad29c8a-f338-4695-9956-2ce66fc4ae74
📒 Files selected for processing (1)
test/TestSupport.hs
Fix #42
Generator could create multiple elements with the same id - ids were created from names and names could have duplicates.
Now names are unique.