mirror of https://github.com/01-edu/public.git
Xavier Petit
5 years ago
committed by
xpetit
2 changed files with 6 additions and 22 deletions
@ -1,15 +0,0 @@
|
||||
package solutions |
||||
|
||||
import ( |
||||
"os" |
||||
"testing" |
||||
) |
||||
|
||||
//function to check if the file exists in a given path
|
||||
func CheckFile(t *testing.T, path string) { |
||||
_, err := os.Stat(path) |
||||
|
||||
if err != nil { |
||||
t.Fatalf(err.Error()) |
||||
} |
||||
} |
Loading…
Reference in new issue