github.com/joey-fossa/fossa-cli@v0.7.34-0.20190708193710-569f1e8679f0/files/files_test.go (about) 1 package files_test 2 3 import ( 4 "path/filepath" 5 "testing" 6 7 "github.com/stretchr/testify/assert" 8 9 "github.com/fossas/fossa-cli/files" 10 ) 11 12 func TestNonExistentParentIsNotErr(t *testing.T) { 13 ok, err := files.Exists(filepath.Join("testdata", "parent", "does", "not", "exist", "file")) 14 assert.NoError(t, err) 15 assert.False(t, ok) 16 }