Prompts that generate tests and test strategy.
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