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

Function TestDirExists

assert/assertions_test.go:2634–2653  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

2632}
2633
2634func TestDirExists(t *testing.T) {
2635 t.Parallel()
2636
2637 mockT := new(testing.T)
2638 False(t, DirExists(mockT, "assertions.go"))
2639
2640 mockT = new(testing.T)
2641 False(t, DirExists(mockT, "non_existent_dir"))
2642
2643 mockT = new(testing.T)
2644 True(t, DirExists(mockT, "../_codegen"))
2645
2646 link := getTempSymlinkPath(t, "assertions.go")
2647 mockT = new(testing.T)
2648 False(t, DirExists(mockT, link))
2649
2650 link = getTempSymlinkPath(t, "non_existent_dir")
2651 mockT = new(testing.T)
2652 False(t, DirExists(mockT, link))
2653}
2654
2655func TestNoDirExists(t *testing.T) {
2656 t.Parallel()

Callers

nothing calls this directly

Calls 4

getTempSymlinkPathFunction · 0.85
FalseFunction · 0.70
DirExistsFunction · 0.70
TrueFunction · 0.70

Tested by

no test coverage detected