MCPcopy
hub / github.com/expr-lang/expr / cleanUpTempFiles

Function cleanUpTempFiles

internal/testify/assert/assertions_test.go:2119–2128  ·  view source on GitHub ↗
(paths []string)

Source from the content-addressed store, hash-verified

2117}
2118
2119func cleanUpTempFiles(paths []string) []error {
2120 var res []error
2121 for _, path := range paths {
2122 err := os.Remove(path)
2123 if err != nil {
2124 res = append(res, err)
2125 }
2126 }
2127 return res
2128}
2129
2130func TestDirExists(t *testing.T) {
2131 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…