MCPcopy
hub / github.com/stretchr/testify / TestNoFileExists

Function TestNoFileExists

assert/assertions_test.go:2602–2621  ·  assert/assertions_test.go::TestNoFileExists
(t *testing.T)

Source from the content-addressed store, hash-verified

2600}
2601
2602func 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
2623func getTempSymlinkPath(t *testing.T, file string) string {
2624 t.Helper()

Callers

nothing calls this directly

Calls 4

getTempSymlinkPathFunction · 0.85
FalseFunction · 0.70
NoFileExistsFunction · 0.70
TrueFunction · 0.70

Tested by

no test coverage detected