diff --git a/filelist.go b/filelist.go index 88ec7d9..8e0fd73 100644 --- a/filelist.go +++ b/filelist.go @@ -57,6 +57,11 @@ func (f *filelist) Contains(pathname string) bool { return true } + // match file suffixes ie. *_test.go + if matched, _ := filepath.Match(filepath.Join("**", pattern), pathname); matched { + return true + } + // Finally try absolute path st, e := os.Stat(rel) if os.IsExist(e) && st.IsDir() && strings.HasPrefix(abs, rel) {