(t *testing.T)
| 154 | } |
| 155 | |
| 156 | func TestLocal_RejectsKeyEscape(t *testing.T) { |
| 157 | b, _ := newLocal(t) |
| 158 | _, err := b.Stat(context.Background(), "../etc/passwd") |
| 159 | if err == nil { |
| 160 | t.Errorf("expected error on key escape, got nil") |
| 161 | } |
| 162 | } |
| 163 | |
| 164 | func TestLocal_PresignReturnsFileURL(t *testing.T) { |
| 165 | b, _ := newLocal(t) |