Browse Source

test: check for errors when globbing test packages

pull/167/head
Ayke van Laethem 6 years ago
parent
commit
222c4c75b1
No known key found for this signature in database GPG Key ID: E97FF5335DFDFDED
  1. 3
      main_test.go

3
main_test.go

@ -23,6 +23,9 @@ func TestCompiler(t *testing.T) {
}
dirMatches, err := filepath.Glob(TESTDATA + "/*/main.go")
if err != nil {
t.Fatal("could not read test packages:", err)
}
if len(matches) == 0 || len(dirMatches) == 0 {
t.Fatal("no test files found")
}

Loading…
Cancel
Save