generate_go_test
Generate a Go test: table-driven subtests with testify from {input, expected|throws} cases, t.Skip for described cases
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": {
"functionName": "<functionName>",
"packageName": "<packageName>"
},
"name": "generate_go_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| testCases | No | Test cases. Either a description string (generated as a pending test) or {name, input: [args...], expected} / {name, input, throws: true | "message"} for a real assertion. | |
| packageName | Yes | ||
| tableDriven | No | ||
| functionName | Yes | ||
| returnsError | No | Function returns (value, error) — default true |