(t *testing.T)
| 494 | } |
| 495 | |
| 496 | func TestSaveResponse_RejectsAbsolutePath(t *testing.T) { |
| 497 | resp := newApiResp([]byte("data"), map[string]string{"Content-Type": "application/octet-stream"}) |
| 498 | _, err := SaveResponse(&localfileio.LocalFileIO{}, resp, "/tmp/evil.txt") |
| 499 | if err == nil { |
| 500 | t.Fatal("expected error for absolute path") |
| 501 | } |
| 502 | } |
| 503 | |
| 504 | func TestSaveResponse_MetadataContainsAbsolutePath(t *testing.T) { |
| 505 | dir := t.TempDir() |
nothing calls this directly
no test coverage detected