(t *testing.T)
| 265 | } |
| 266 | |
| 267 | func TestCheckWritePermission_Fail(t *testing.T) { |
| 268 | dir := t.TempDir() |
| 269 | os.Chmod(dir, 0o555) |
| 270 | defer os.Chmod(dir, 0o755) // restore for cleanup |
| 271 | |
| 272 | if err := checkWritePermission(dir); err == nil { |
| 273 | t.Error("expected write permission check to fail") |
| 274 | } |
| 275 | } |
| 276 | |
| 277 | func TestDownloadToTemp(t *testing.T) { |
| 278 | content := "binary content here" |
nothing calls this directly
no test coverage detected