From 19b7bae890813cf533c251afeeede2cd3667f1e8 Mon Sep 17 00:00:00 2001 From: Olga Borzenkova Date: Thu, 29 Aug 2024 16:36:50 +0300 Subject: [PATCH] detect any directory with /test in path as test package --- java/gazelle/private/java/java.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/gazelle/private/java/java.go b/java/gazelle/private/java/java.go index 88e6a2c8..62ec8dc9 100644 --- a/java/gazelle/private/java/java.go +++ b/java/gazelle/private/java/java.go @@ -21,7 +21,7 @@ func IsTestPackage(pkg string) bool { } } - return strings.Contains(pkg, "/test/") + return strings.Contains(pkg, "/test") } // This list was derived from a script along the lines of: