test: check for errors when globbing test packages
Этот коммит содержится в:
родитель
5a509f5bfe
коммит
222c4c75b1
1 изменённых файлов: 3 добавлений и 0 удалений
|
@ -23,6 +23,9 @@ func TestCompiler(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
dirMatches, err := filepath.Glob(TESTDATA + "/*/main.go")
|
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 {
|
if len(matches) == 0 || len(dirMatches) == 0 {
|
||||||
t.Fatal("no test files found")
|
t.Fatal("no test files found")
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче