(t *testing.T)
| 81 | } |
| 82 | |
| 83 | func TestParseJSONResponse_EmptyBody_WrapsEOF(t *testing.T) { |
| 84 | resp := newApiResp([]byte{}, map[string]string{"Content-Type": "application/json"}) |
| 85 | _, err := ParseJSONResponse(resp) |
| 86 | if err == nil { |
| 87 | t.Fatal("expected error for empty body") |
| 88 | } |
| 89 | if !errors.Is(err, io.EOF) { |
| 90 | t.Fatalf("expected wrapped io.EOF, got %v", err) |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | func TestResolveFilename(t *testing.T) { |
| 95 | tests := []struct { |
nothing calls this directly
no test coverage detected