MCPcopy Create free account
hub / github.com/stretchr/testify / cleanUpTempFiles

Function cleanUpTempFiles

assert/assertions_test.go:2248–2257  ·  view source on GitHub ↗
(paths []string)

Source from the content-addressed store, hash-verified

2246}
2247
2248func cleanUpTempFiles(paths []string) []error {
2249 var res []error
2250 for _, path := range paths {
2251 err := os.Remove(path)
2252 if err != nil {
2253 res = append(res, err)
2254 }
2255 }
2256 return res
2257}
2258
2259func TestDirExists(t *testing.T) {
2260 mockT := new(testing.T)

Callers 4

TestFileExistsFunction · 0.85
TestNoFileExistsFunction · 0.85
TestDirExistsFunction · 0.85
TestNoDirExistsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected