Questions tagged [testing]
Post a PromptPrompts that generate tests and test strategy.
1 prompts
5votes
0answers
969views
Splitting a 600-line god function into pure units without behavior drift
The worst function in our codebase does input parsing, three network calls, retry logic, formatting, and logging in one 600-line block. I wanted GPT to carve it into small pure functions plus a thin o