Prompt library
Coding & Dev Textapp/auto-code

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
Fix failing CI

Turn a failing check into a reproducible, tested repair instead of a speculative patch.

#agent#ci#debugging#regression