forked from root/public
![32063953+xpetit@users.noreply.github.com](/git/assets/img/avatar_default.png)
![xpetit](/git/assets/img/avatar_default.png)
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