(t *testing.T)
| 312 | } |
| 313 | |
| 314 | func TestCreateTestFile(t *testing.T) { |
| 315 | dir, cleanup, err := TempDir("surge-test") |
| 316 | if err != nil { |
| 317 | t.Fatal(err) |
| 318 | } |
| 319 | defer cleanup() |
| 320 | |
| 321 | path, err := CreateTestFile(dir, "test.bin", 1024, false) |
| 322 | if err != nil { |
| 323 | t.Fatalf("Failed to create test file: %v", err) |
| 324 | } |
| 325 | |
| 326 | if err := VerifyFileSize(path, 1024); err != nil { |
| 327 | t.Error(err) |
| 328 | } |
| 329 | } |
| 330 | |
| 331 | func TestVerifyFileSize(t *testing.T) { |
| 332 | dir, cleanup, _ := TempDir("surge-test") |
nothing calls this directly
no test coverage detected