(t *testing.T)
| 65 | } |
| 66 | |
| 67 | func TestReadJSONRPCResponse_EmptyInput(t *testing.T) { |
| 68 | t.Parallel() |
| 69 | scanner := bufio.NewScanner(strings.NewReader("")) |
| 70 | |
| 71 | _, err := readJSONRPCResponse(scanner) |
| 72 | if err == nil { |
| 73 | t.Fatal("expected error for empty input, got nil") |
| 74 | } |
| 75 | } |
| 76 | |
| 77 | func TestReadJSONRPCResponse_InvalidJSON(t *testing.T) { |
| 78 | t.Parallel() |
nothing calls this directly
no test coverage detected