Skip to content

Commit

Permalink
test: remove all uses of t.Parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Dec 11, 2024
1 parent 9fe6d76 commit ec75397
Show file tree
Hide file tree
Showing 23 changed files with 0 additions and 89 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ import (
)

func TestExtractor_Extract_v1_revisions(t *testing.T) {
t.Parallel()

tests := []extracttest.TestTableEntry{
{
Name: "no packages",
Expand Down Expand Up @@ -161,7 +159,6 @@ func TestExtractor_Extract_v1_revisions(t *testing.T) {

for _, tt := range tests {
t.Run(tt.Name, func(t *testing.T) {
t.Parallel()
extr := conanlock.Extractor{}

scanInput := extracttest.GenerateScanInputMock(t, tt.InputConfig)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ import (
)

func TestExtractor_Extract_v1(t *testing.T) {
t.Parallel()

tests := []extracttest.TestTableEntry{
{
Name: "invalid json",
Expand Down Expand Up @@ -233,7 +231,6 @@ func TestExtractor_Extract_v1(t *testing.T) {

for _, tt := range tests {
t.Run(tt.Name, func(t *testing.T) {
t.Parallel()
extr := conanlock.Extractor{}

scanInput := extracttest.GenerateScanInputMock(t, tt.InputConfig)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import (
)

func TestExtractor_Extract_v2(t *testing.T) {
t.Parallel()
tests := []extracttest.TestTableEntry{
{
Name: "no packages",
Expand Down Expand Up @@ -160,7 +159,6 @@ func TestExtractor_Extract_v2(t *testing.T) {

for _, tt := range tests {
t.Run(tt.Name, func(t *testing.T) {
t.Parallel()
extr := conanlock.Extractor{}

scanInput := extracttest.GenerateScanInputMock(t, tt.InputConfig)
Expand Down
3 changes: 0 additions & 3 deletions extractor/filesystem/language/cpp/conanlock/conanlock_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ import (
)

func TestExtractor_FileRequired(t *testing.T) {
t.Parallel()

tests := []struct {
name string
inputPath string
Expand Down Expand Up @@ -57,7 +55,6 @@ func TestExtractor_FileRequired(t *testing.T) {
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
t.Parallel()
e := conanlock.Extractor{}
got := e.FileRequired(simplefileapi.New(tt.inputPath, nil))
if got != tt.want {
Expand Down
6 changes: 0 additions & 6 deletions extractor/filesystem/language/golang/gomod/gomod_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ import (
)

func TestExtractor_FileRequired(t *testing.T) {
t.Parallel()

tests := []struct {
name string
inputPath string
Expand Down Expand Up @@ -61,7 +59,6 @@ func TestExtractor_FileRequired(t *testing.T) {
}
for _, tt := range tests {
t.Run(tt.inputPath, func(t *testing.T) {
t.Parallel()
e := gomod.Extractor{}
got := e.FileRequired(simplefileapi.New(tt.inputPath, nil))
if got != tt.want {
Expand All @@ -72,8 +69,6 @@ func TestExtractor_FileRequired(t *testing.T) {
}

func TestExtractor_Extract(t *testing.T) {
t.Parallel()

tests := []extracttest.TestTableEntry{
{
Name: "invalid",
Expand Down Expand Up @@ -265,7 +260,6 @@ func TestExtractor_Extract(t *testing.T) {

for _, tt := range tests {
t.Run(tt.Name, func(t *testing.T) {
t.Parallel()
extr := gomod.Extractor{}

scanInput := extracttest.GenerateScanInputMock(t, tt.InputConfig)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ import (
)

func TestExtractor_FileRequired(t *testing.T) {
t.Parallel()

tests := []struct {
inputPath string
want bool
Expand Down Expand Up @@ -81,7 +79,6 @@ func TestExtractor_FileRequired(t *testing.T) {
}
for _, tt := range tests {
t.Run(tt.inputPath, func(t *testing.T) {
t.Parallel()
e := gradlelockfile.Extractor{}
got := e.FileRequired(simplefileapi.New(tt.inputPath, nil))
if got != tt.want {
Expand All @@ -92,7 +89,6 @@ func TestExtractor_FileRequired(t *testing.T) {
}

func TestExtractor_Extract(t *testing.T) {
t.Parallel()
tests := []extracttest.TestTableEntry{
{
Name: "only comments",
Expand Down Expand Up @@ -208,7 +204,6 @@ func TestExtractor_Extract(t *testing.T) {

for _, tt := range tests {
t.Run(tt.Name, func(t *testing.T) {
t.Parallel()
extr := gradlelockfile.Extractor{}

scanInput := extracttest.GenerateScanInputMock(t, tt.InputConfig)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ import (
)

func TestExtractor_FileRequired(t *testing.T) {
t.Parallel()

tests := []struct {
name string
inputPath string
Expand Down Expand Up @@ -93,7 +91,6 @@ func TestExtractor_FileRequired(t *testing.T) {
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
t.Parallel()
e := gradleverificationmetadataxml.Extractor{}
got := e.FileRequired(simplefileapi.New(tt.inputPath, nil))
if got != tt.want {
Expand All @@ -104,7 +101,6 @@ func TestExtractor_FileRequired(t *testing.T) {
}

func TestExtractor_Extract(t *testing.T) {
t.Parallel()
tests := []extracttest.TestTableEntry{
{
Name: "invalid xml",
Expand Down Expand Up @@ -454,7 +450,6 @@ func TestExtractor_Extract(t *testing.T) {

for _, tt := range tests {
t.Run(tt.Name, func(t *testing.T) {
t.Parallel()
extr := gradleverificationmetadataxml.Extractor{}

scanInput := extracttest.GenerateScanInputMock(t, tt.InputConfig)
Expand Down
6 changes: 0 additions & 6 deletions extractor/filesystem/language/java/pomxml/pomxml_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ import (
)

func TestExtractor_FileRequired(t *testing.T) {
t.Parallel()

tests := []struct {
inputPath string
want bool
Expand Down Expand Up @@ -61,7 +59,6 @@ func TestExtractor_FileRequired(t *testing.T) {
}
for _, tt := range tests {
t.Run(tt.inputPath, func(t *testing.T) {
t.Parallel()
e := pomxml.Extractor{}
got := e.FileRequired(simplefileapi.New(tt.inputPath, nil))
if got != tt.want {
Expand All @@ -72,8 +69,6 @@ func TestExtractor_FileRequired(t *testing.T) {
}

func TestExtractor_Extract(t *testing.T) {
t.Parallel()

tests := []extracttest.TestTableEntry{
{
Name: "invalid",
Expand Down Expand Up @@ -252,7 +247,6 @@ func TestExtractor_Extract(t *testing.T) {

for _, tt := range tests {
t.Run(tt.Name, func(t *testing.T) {
t.Parallel()
extr := pomxml.Extractor{}

scanInput := extracttest.GenerateScanInputMock(t, tt.InputConfig)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ import (
)

func TestNPMLockExtractor_Extract_V1(t *testing.T) {
t.Parallel()

tests := []extracttest.TestTableEntry{
{
Name: "invalid json",
Expand Down Expand Up @@ -839,8 +837,6 @@ func TestNPMLockExtractor_Extract_V1(t *testing.T) {

for _, tt := range tests {
t.Run(tt.Name, func(t *testing.T) {
t.Parallel()

collector := testcollector.New()
extr := packagelockjson.New(packagelockjson.Config{
Stats: collector,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ import (
)

func TestNPMLockExtractor_Extract_V2(t *testing.T) {
t.Parallel()

tests := []extracttest.TestTableEntry{
{
Name: "invalid json",
Expand Down Expand Up @@ -555,8 +553,6 @@ func TestNPMLockExtractor_Extract_V2(t *testing.T) {

for _, tt := range tests {
t.Run(tt.Name, func(t *testing.T) {
t.Parallel()

collector := testcollector.New()
extr := packagelockjson.New(packagelockjson.Config{
Stats: collector,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,6 @@ func TestMetricCollector(t *testing.T) {

for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
t.Parallel()

collector := testcollector.New()
extr := packagelockjson.New(packagelockjson.Config{
Stats: collector,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,6 @@ func TestExtractor_Extract_v9(t *testing.T) {

for _, tt := range tests {
t.Run(tt.Name, func(t *testing.T) {
t.Parallel()
extr := pnpmlock.Extractor{}

scanInput := extracttest.GenerateScanInputMock(t, tt.InputConfig)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ func TestExtractor_FileRequired(t *testing.T) {
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
t.Parallel()
e := pnpmlock.Extractor{}
got := e.FileRequired(simplefileapi.New(tt.inputPath, nil))
if got != tt.want {
Expand Down Expand Up @@ -685,7 +684,6 @@ func TestExtractor_Extract(t *testing.T) {

for _, tt := range tests {
t.Run(tt.Name, func(t *testing.T) {
t.Parallel()
extr := pnpmlock.Extractor{}

scanInput := extracttest.GenerateScanInputMock(t, tt.InputConfig)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,6 @@ func TestExtractor_Extract_v2(t *testing.T) {

for _, tt := range tests {
t.Run(tt.Name, func(t *testing.T) {
t.Parallel()
extr := yarnlock.Extractor{}

scanInput := extracttest.GenerateScanInputMock(t, tt.InputConfig)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ import (
)

func TestExtractor_FileRequired(t *testing.T) {
t.Parallel()

tests := []struct {
name string
inputPath string
Expand Down Expand Up @@ -68,7 +66,6 @@ func TestExtractor_FileRequired(t *testing.T) {
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
t.Parallel()
e := composerlock.Extractor{}
got := e.FileRequired(simplefileapi.New(tt.inputPath, nil))
if got != tt.want {
Expand All @@ -79,8 +76,6 @@ func TestExtractor_FileRequired(t *testing.T) {
}

func TestExtractor_Extract(t *testing.T) {
t.Parallel()

tests := []extracttest.TestTableEntry{
{
Name: "invalid json",
Expand Down Expand Up @@ -199,7 +194,6 @@ func TestExtractor_Extract(t *testing.T) {

for _, tt := range tests {
t.Run(tt.Name, func(t *testing.T) {
t.Parallel()
extr := composerlock.Extractor{}

scanInput := extracttest.GenerateScanInputMock(t, tt.InputConfig)
Expand Down
6 changes: 0 additions & 6 deletions extractor/filesystem/language/python/pdmlock/pdmlock_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ import (
)

func TestPdmExtractor_FileRequired(t *testing.T) {
t.Parallel()

tests := []struct {
name string
inputPath string
Expand Down Expand Up @@ -74,7 +72,6 @@ func TestPdmExtractor_FileRequired(t *testing.T) {

for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
t.Parallel()
e := pdmlock.Extractor{}
got := e.FileRequired(simplefileapi.New(tt.inputPath, nil))
if got != tt.want {
Expand All @@ -85,8 +82,6 @@ func TestPdmExtractor_FileRequired(t *testing.T) {
}

func TestExtractor_Extract(t *testing.T) {
t.Parallel()

tests := []extracttest.TestTableEntry{
{
Name: "invalid toml",
Expand Down Expand Up @@ -230,7 +225,6 @@ func TestExtractor_Extract(t *testing.T) {

for _, tt := range tests {
t.Run(tt.Name, func(t *testing.T) {
t.Parallel()
extr := pdmlock.Extractor{}

scanInput := extracttest.GenerateScanInputMock(t, tt.InputConfig)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ import (
)

func TestExtractor_FileRequired(t *testing.T) {
t.Parallel()

tests := []struct {
name string
inputPath string
Expand Down Expand Up @@ -68,7 +66,6 @@ func TestExtractor_FileRequired(t *testing.T) {
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
t.Parallel()
e := pipfilelock.Extractor{}
got := e.FileRequired(simplefileapi.New(tt.inputPath, nil))
if got != tt.want {
Expand All @@ -79,8 +76,6 @@ func TestExtractor_FileRequired(t *testing.T) {
}

func TestExtractor_Extract(t *testing.T) {
t.Parallel()

tests := []extracttest.TestTableEntry{
{
Name: "invalid json",
Expand Down Expand Up @@ -228,7 +223,6 @@ func TestExtractor_Extract(t *testing.T) {

for _, tt := range tests {
t.Run(tt.Name, func(t *testing.T) {
t.Parallel()
extr := pipfilelock.Extractor{}

scanInput := extracttest.GenerateScanInputMock(t, tt.InputConfig)
Expand Down
Loading

0 comments on commit ec75397

Please sign in to comment.