6
0
mirror of https://github.com/grdl/git-get.git synced 2026-02-08 06:59:15 +00:00

Add test parallelization and re-enable paralleltest linter

This commit is contained in:
Grzegorz Dlugoszewski
2025-08-25 19:13:09 +02:00
parent eabef7b444
commit df6c239099
9 changed files with 50 additions and 3 deletions

View File

@@ -6,6 +6,7 @@ import (
"testing"
)
//nolint:paralleltest // Tests modifies global state (os.Args) and cannot run in parallel
func TestDetermineCommand(t *testing.T) {
tests := []struct {
name string
@@ -102,6 +103,7 @@ func TestDetermineCommand(t *testing.T) {
}
}
//nolint:paralleltest // Tests modifies global state (os.Args) and cannot run in parallel
func TestHandleGitGetInvocation(t *testing.T) {
tests := []struct {
name string
@@ -164,6 +166,7 @@ func TestHandleGitGetInvocation(t *testing.T) {
}
}
//nolint:paralleltest // Tests modifies global state (os.Args) and cannot run in parallel
func TestHandleGitListInvocation(t *testing.T) {
tests := []struct {
name string
@@ -208,6 +211,7 @@ func TestHandleGitListInvocation(t *testing.T) {
}
}
//nolint:paralleltest // Tests modifies global state (os.Args) and cannot run in parallel
func TestHandleDefaultInvocation(t *testing.T) {
tests := []struct {
name string