generate_edge_tests
Generate defensive edge-case tests from source code, covering boundary conditions, exception handling, and high branch coverage for Python, TypeScript, and JavaScript.
Instructions
Synthesizes industrial-grade defensive unit tests with 96%+ branch coverage, boundary invariance, and exception handling for any source code.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"code": "<code>"
},
"name": "generate_edge_tests"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The source code snippet or function to test | |
| tier | No | Test synthesis tier: 'community' (free) or 'pro' (mutation fuzzing) | community |
| tx_hash | No | Optional Polygon or TRON transaction hash verifying 1 USDC/USDT fee for pro tier | |
| language | No | Programming language (python, typescript, javascript) | python |
| framework | No | Target test framework (pytest, jest, vitest) | pytest |