summaryrefslogtreecommitdiff
path: root/java/jacoco_test.go
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2025-01-31 17:02:52 -0800
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2025-01-31 17:02:52 -0800
commit536ad66134dbc54b46be3f35cc563f1db67594ac (patch)
tree264b7203f28be06bfafa06806aae9c1f8c8d144a /java/jacoco_test.go
parent52dc1a7f9533c82d27a2c75cfabd0cbeb763f6ac (diff)
parentd5c643112afa3e935e112a7e87705b5398d3532b (diff)
Merge changes I39a75dab,I4c6640e7,I931216a5 into main
* changes: Return android.Module from BottomUpMutatorContext methods Add t.Parallel() to java tests Run gofmt -w .
Diffstat (limited to 'java/jacoco_test.go')
-rw-r--r--java/jacoco_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/java/jacoco_test.go b/java/jacoco_test.go
index 1882908ca..58a091e4c 100644
--- a/java/jacoco_test.go
+++ b/java/jacoco_test.go
@@ -17,6 +17,7 @@ package java
import "testing"
func TestJacocoFilterToSpecs(t *testing.T) {
+ t.Parallel()
testCases := []struct {
name, in, out string
}{
@@ -54,6 +55,7 @@ func TestJacocoFilterToSpecs(t *testing.T) {
for _, testCase := range testCases {
t.Run(testCase.name, func(t *testing.T) {
+ t.Parallel()
got, err := jacocoFilterToSpec(testCase.in)
if err != nil {
t.Error(err)
@@ -66,6 +68,7 @@ func TestJacocoFilterToSpecs(t *testing.T) {
}
func TestJacocoFiltersToZipCommand(t *testing.T) {
+ t.Parallel()
testCases := []struct {
name string
includes, excludes []string
@@ -96,6 +99,7 @@ func TestJacocoFiltersToZipCommand(t *testing.T) {
for _, testCase := range testCases {
t.Run(testCase.name, func(t *testing.T) {
+ t.Parallel()
got := jacocoFiltersToZipCommand(testCase.includes, testCase.excludes)
if got != testCase.out {
t.Errorf("expected %q got %q", testCase.out, got)