(paths []string)
| 2246 | } |
| 2247 | |
| 2248 | func 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 | |
| 2259 | func TestDirExists(t *testing.T) { |
| 2260 | mockT := new(testing.T) |
no outgoing calls
no test coverage detected