MCPcopy Index your code
hub / github.com/expr-lang/expr / TestNoDirExists

Function TestNoDirExists

internal/testify/assert/assertions_test.go:2164–2196  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

2162}
2163
2164func TestNoDirExists(t *testing.T) {
2165 mockT := new(testing.T)
2166 True(t, NoDirExists(mockT, "assertions.go"))
2167
2168 mockT = new(testing.T)
2169 True(t, NoDirExists(mockT, "non_existent_dir"))
2170
2171 mockT = new(testing.T)
2172 False(t, NoDirExists(mockT, "../assert"))
2173
2174 var tempFiles []string
2175
2176 link, err := getTempSymlinkPath("assertions.go")
2177 if err != nil {
2178 t.Fatal("could not create temp symlink, err:", err)
2179 }
2180 tempFiles = append(tempFiles, link)
2181 mockT = new(testing.T)
2182 True(t, NoDirExists(mockT, link))
2183
2184 link, err = getTempSymlinkPath("non_existent_dir")
2185 if err != nil {
2186 t.Fatal("could not create temp symlink, err:", err)
2187 }
2188 tempFiles = append(tempFiles, link)
2189 mockT = new(testing.T)
2190 True(t, NoDirExists(mockT, link))
2191
2192 errs := cleanUpTempFiles(tempFiles)
2193 if len(errs) > 0 {
2194 t.Fatal("could not clean up temporary files")
2195 }
2196}
2197
2198func TestJSONEq_EqualSONString(t *testing.T) {
2199 mockT := new(testing.T)

Callers

nothing calls this directly

Calls 5

getTempSymlinkPathFunction · 0.85
cleanUpTempFilesFunction · 0.85
TrueFunction · 0.70
NoDirExistsFunction · 0.70
FalseFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…