Skip to content

Commit

Permalink
update includetest filter to follow go test file naming convention
Browse files Browse the repository at this point in the history
  • Loading branch information
bcicen committed Nov 8, 2018
1 parent 2493cf2 commit 86735c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion import.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func parseInput(args []string, fset *token.FileSet, includeTests bool) ([]*ast.F
// do a final pass to remove tests
if !includeTests {
for i, f := range files {
if strings.HasSuffix(fset.File(f.Pos()).Name(), "test.go") {
if strings.HasSuffix(fset.File(f.Pos()).Name(), "_test.go") {
files[i] = nil
}
}
Expand Down

0 comments on commit 86735c7

Please sign in to comment.