analyze_test_coverage
Analyzes source and test code to find untested functions, then prioritizes which need tests based on complexity, export status, and parameter count.
Instructions
Parse source code and test code to identify untested functions. Suggests which functions need tests most based on complexity, export status, and parameter count.
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": {
"source_code": "<source_code>",
"test_code": "<test_code>"
},
"name": "analyze_test_coverage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| test_code | Yes | The test code to check which functions are already tested | |
| source_code | Yes | The source code to analyze for functions | |
| source_file_name | No | Filename for the source (used in output, default: "source.ts") |