(t *testing.T)
| 2600 | } |
| 2601 | |
| 2602 | func TestNoFileExists(t *testing.T) { |
| 2603 | t.Parallel() |
| 2604 | |
| 2605 | mockT := new(testing.T) |
| 2606 | False(t, NoFileExists(mockT, "assertions.go")) |
| 2607 | |
| 2608 | mockT = new(testing.T) |
| 2609 | True(t, NoFileExists(mockT, "non_existent_file")) |
| 2610 | |
| 2611 | mockT = new(testing.T) |
| 2612 | True(t, NoFileExists(mockT, "../_codegen")) |
| 2613 | |
| 2614 | link := getTempSymlinkPath(t, "assertions.go") |
| 2615 | mockT = new(testing.T) |
| 2616 | False(t, NoFileExists(mockT, link)) |
| 2617 | |
| 2618 | link = getTempSymlinkPath(t, "non_existent_file") |
| 2619 | mockT = new(testing.T) |
| 2620 | False(t, NoFileExists(mockT, link)) |
| 2621 | } |
| 2622 | |
| 2623 | func getTempSymlinkPath(t *testing.T, file string) string { |
| 2624 | t.Helper() |
nothing calls this directly
no test coverage detected