only test directories
This commit is contained in:
parent
03b3b11079
commit
02036fa0d1
1 changed files with 6 additions and 0 deletions
|
@ -42,6 +42,9 @@ func TestParser(t *testing.T) {
|
||||||
t.Fatalf("Unable to read test directory : %s", err)
|
t.Fatalf("Unable to read test directory : %s", err)
|
||||||
}
|
}
|
||||||
for _, fd := range fds {
|
for _, fd := range fds {
|
||||||
|
if !fd.IsDir() {
|
||||||
|
continue
|
||||||
|
}
|
||||||
fname := "./tests/" + fd.Name()
|
fname := "./tests/" + fd.Name()
|
||||||
log.Infof("Running test on %s", fname)
|
log.Infof("Running test on %s", fname)
|
||||||
if err := testOneParser(pctx, fname, nil); err != nil {
|
if err := testOneParser(pctx, fname, nil); err != nil {
|
||||||
|
@ -72,6 +75,9 @@ func BenchmarkParser(t *testing.B) {
|
||||||
t.Fatalf("Unable to read test directory : %s", err)
|
t.Fatalf("Unable to read test directory : %s", err)
|
||||||
}
|
}
|
||||||
for _, fd := range fds {
|
for _, fd := range fds {
|
||||||
|
if !fd.IsDir() {
|
||||||
|
continue
|
||||||
|
}
|
||||||
fname := "./tests/" + fd.Name()
|
fname := "./tests/" + fd.Name()
|
||||||
log.Infof("Running test on %s", fname)
|
log.Infof("Running test on %s", fname)
|
||||||
if err := testOneParser(pctx, fname, t); err != nil {
|
if err := testOneParser(pctx, fname, t); err != nil {
|
||||||
|
|
Loading…
Add table
Reference in a new issue