Skip to content

Commit

Permalink
Update java/gazelle/private/java/java.go
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Wagner-Hall <[email protected]>
  • Loading branch information
kusaeva and illicitonion authored Sep 3, 2024
1 parent f27e6c2 commit 195b579
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion java/gazelle/private/java/java.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func IsTestPackage(pkg string) bool {
}
}

return strings.Contains(pkg, "/test")
return strings.Contains(pkg, "/test/") || strings.HasSuffix(pkg, "/test")
}

// This list was derived from a script along the lines of:
Expand Down

0 comments on commit 195b579

Please sign in to comment.