18 lines
185 B
Go
18 lines
185 B
Go
|
package file
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestExists(t *testing.T) {
|
||
|
ok, err := Exists("/")
|
||
|
|
||
|
if ok {
|
||
|
return
|
||
|
}
|
||
|
|
||
|
if !ok || err != nil {
|
||
|
t.Fatalf("Test Exists fail, %s", err)
|
||
|
}
|
||
|
}
|