Write table-driven tests
Generate focused tests that cover boundaries, malformed input, and regressions.
Copy-ready prompt
Write a table-driven test suite for the code below using the repository's existing test style. Cover the happy path, empty and nil input, boundaries, malformed data, and the reported regression. Avoid network and clock flakiness; inject or fake dependencies when needed. Each case name should describe the behavior. Do not change production behavior to make the test pass. ``` [CODE] ```
Related prompts
Textapp/auto-code
Ship a repository featureGive a coding agent a bounded feature task with verification and a clean handoff.
#agent#repository#implementation#tests
Textapp/auto-code
Fix failing CITurn a failing check into a reproducible, tested repair instead of a speculative patch.
#agent#ci#debugging#regression
Textapp/auto-reasoning
Production incident responderGuide an operations agent through evidence gathering, mitigation, repair, and verification.
#agent#operations#incident#production