Skip to content

Commit

Permalink
parser: TestErrParse
Browse files Browse the repository at this point in the history
  • Loading branch information
visualfc committed Aug 23, 2023
1 parent b043e47 commit d009147
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions parser/parserdir_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,12 @@ func TestErrParse(t *testing.T) {
if err != syscall.ENOENT {
t.Fatal("ParseFSDir:", err)
}

fs = parsertest.NewSingleFileFS("/foo", "test.abc.gox", `package foo bar`)
_, err = ParseFSDir(fset, fs, "/foo", Config{})
if err == nil {
t.Fatal("ParseFSDir test.gop: no error?")
}
}

func testFromDir(t *testing.T, sel, relDir string) {
Expand Down

0 comments on commit d009147

Please sign in to comment.