MCPcopy Index your code
hub / github.com/github/github-mcp-server / TestReadJSONRPCResponse_EmptyInput

Function TestReadJSONRPCResponse_EmptyInput

cmd/mcpcurl/main_test.go:67–75  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

65}
66
67func 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
77func TestReadJSONRPCResponse_InvalidJSON(t *testing.T) {
78 t.Parallel()

Callers

nothing calls this directly

Calls 1

readJSONRPCResponseFunction · 0.85

Tested by

no test coverage detected