-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
lowAin't annoying anyone but the QA departmentAin't annoying anyone but the QA department
Description
Problem
CodeScene analysis has identified code duplication between two functions in tests/support/mod.rs:
fake_ninjafake_ninja_pwd
Both functions follow a similar pattern for creating fake executables with temporary directories and shell scripts, but with different script content.
Suggested Solution
Consider extracting the common functionality into a shared helper function that accepts the script content as a parameter, reducing duplication whilst maintaining the specific behaviour of each function.
Context
This issue was identified during PR review and flagged by automated analysis.
References:
- PR: Handle manifest path in process tests #56
- Comment: Handle manifest path in process tests #56 (comment)
- Issue: Refactor code duplication in test support utilities #63
Requested by: @leynos
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
lowAin't annoying anyone but the QA departmentAin't annoying anyone but the QA department