fix: Extract shared dummy_tool test helper (#183)#184
Conversation
Move the duplicated dummy_tool/2 helper function from 5 test files into a new shared module at test/support/test_helpers.ex. This eliminates code duplication (99 usages across 5 files) and improves maintainability. Files modified: - test/support/test_helpers.ex (new) - test/ptc_runner/lisp/eval_control_flow_test.exs - test/ptc_runner/lisp/eval_data_types_test.exs - test/ptc_runner/lisp/eval_errors_test.exs - test/ptc_runner/lisp/eval_functions_test.exs - test/ptc_runner/lisp/eval_memory_test.exs 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
PR Review: Extract shared dummy_tool test helperSummaryClean tech-debt cleanup that extracts a duplicated What's Good
Issues (Must Fix)None. Suggestions (Optional)None - this PR is appropriately minimal. The scope is exactly right for a DRY cleanup. SecurityNo concerns - this is a test-only change with no security implications. DocumentationNo updates needed - this is internal test infrastructure that doesn't affect public API or architecture docs. VerdictApprove - Clean, complete, and follows established patterns. Ready to merge. |
Auto-Triage SummaryReview AnalysisThe automated PR review found no issues or suggestions requiring action. This is a clean approval for a well-executed tech-debt cleanup. Review Highlights
Decisions Made
Status
Next StepsAdding |
Summary
Extracts the duplicated
dummy_tool/2test helper function from 5 test files into a new shared module attest/support/test_helpers.ex. This eliminates code duplication (99 usages across 5 files) and improves maintainability while following existing patterns in the codebase.Changes
test/support/test_helpers.exwith the shareddummy_tool/2helpertest/ptc_runner/lisp/eval_control_flow_test.exstest/ptc_runner/lisp/eval_data_types_test.exstest/ptc_runner/lisp/eval_errors_test.exstest/ptc_runner/lisp/eval_functions_test.exstest/ptc_runner/lisp/eval_memory_test.exsTest Plan
Fixes #183
🤖 Generated with Claude Code