(t *testing.T)
| 606 | } |
| 607 | |
| 608 | func TestResponseProcessor_MalformedJSON(t *testing.T) { |
| 609 | qc := &qcode.QCode{ |
| 610 | Selects: []qcode.Select{}, |
| 611 | } |
| 612 | rp := NewResponseProcessor(qc) |
| 613 | |
| 614 | // Invalid JSON should return error |
| 615 | input := []byte(`{"data": invalid}`) |
| 616 | _, _, err := rp.ProcessForCache(input) |
| 617 | if err == nil { |
| 618 | t.Errorf("expected error for malformed JSON") |
| 619 | } |
| 620 | } |
| 621 | |
| 622 | func TestResponseProcessor_MissingGjId(t *testing.T) { |
| 623 | // Test that objects without __gj_id are handled gracefully |
nothing calls this directly
no test coverage detected