Skip to content

Commit

Permalink
refactor: remove t.Parallel() from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Yukal committed Dec 23, 2023
1 parent 8e6be14 commit 791d369
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 1,760 deletions.
17 changes: 0 additions & 17 deletions test/unit/validation/IsEachMatches_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ func TestIsEachMatches(t *testing.T) {

// TODO: check chan (channels)
t.Run("FilledSlice", func(t *testing.T) {
t.Parallel()
const expect = true

reg := `(?i)^[0-9a-f]{32}$`
Expand All @@ -21,7 +20,6 @@ func TestIsEachMatches(t *testing.T) {
})

t.Run("FilledArray", func(t *testing.T) {
t.Parallel()
const expect = true

reg := `^38[0-9]{10}$`
Expand All @@ -33,7 +31,6 @@ func TestIsEachMatches(t *testing.T) {
})

t.Run("FilledMap", func(t *testing.T) {
t.Parallel()
const expect = true

reg := `^https\://img\.domain\.com/[0-9A-Fa-f]{32}\.(?:pn|jpe?)g$`
Expand All @@ -52,7 +49,6 @@ func TestIsEachMatches(t *testing.T) {

t.Run("emptiness", func(t *testing.T) {
t.Run("nil_&_nil", func(t *testing.T) {
t.Parallel()
const expect = false

if res := validation.IsEachMatches(nil, nil); res != expect {
Expand All @@ -61,7 +57,6 @@ func TestIsEachMatches(t *testing.T) {
})

t.Run("nil_&_EmptySlice", func(t *testing.T) {
t.Parallel()
const expect = false

if res := validation.IsEachMatches(nil, []string{}); res != expect {
Expand All @@ -70,7 +65,6 @@ func TestIsEachMatches(t *testing.T) {
})

t.Run("nil_&_EmptyArray)", func(t *testing.T) {
t.Parallel()
const expect = false

if res := validation.IsEachMatches(nil, [0]string{}); res != expect {
Expand All @@ -79,7 +73,6 @@ func TestIsEachMatches(t *testing.T) {
})

t.Run("nil_&_EmptyMap)", func(t *testing.T) {
t.Parallel()
const expect = false

if res := validation.IsEachMatches(nil, map[string]string{}); res != expect {
Expand All @@ -88,7 +81,6 @@ func TestIsEachMatches(t *testing.T) {
})

t.Run("EmptyRegex_&_nil", func(t *testing.T) {
t.Parallel()
const expect = false

if res := validation.IsEachMatches(``, nil); res != expect {
Expand All @@ -99,7 +91,6 @@ func TestIsEachMatches(t *testing.T) {
// ...

t.Run("EmptyRegex_&_EmptySlice)", func(t *testing.T) {
t.Parallel()
const expect = true

reg := ``
Expand All @@ -111,7 +102,6 @@ func TestIsEachMatches(t *testing.T) {
})

t.Run("EmptyRegex_&_EmptyArray", func(t *testing.T) {
t.Parallel()
const expect = true

reg := ``
Expand All @@ -123,7 +113,6 @@ func TestIsEachMatches(t *testing.T) {
})

t.Run("EmptyRegex_&_EmptyMap", func(t *testing.T) {
t.Parallel()
const expect = true

reg := ``
Expand All @@ -137,7 +126,6 @@ func TestIsEachMatches(t *testing.T) {
// ...

t.Run("EmptyRegex_&_FilledSlice", func(t *testing.T) {
t.Parallel()
const expect = true

reg := ``
Expand All @@ -149,7 +137,6 @@ func TestIsEachMatches(t *testing.T) {
})

t.Run("EmptyRegex_&_FilledArray)", func(t *testing.T) {
t.Parallel()
const expect = true

reg := ``
Expand All @@ -161,7 +148,6 @@ func TestIsEachMatches(t *testing.T) {
})

t.Run("EmptyRegex_&_FilledMap)", func(t *testing.T) {
t.Parallel()
const expect = true

reg := ``
Expand All @@ -175,7 +161,6 @@ func TestIsEachMatches(t *testing.T) {
// ...

t.Run("FilledRegex_&_EmptyData", func(t *testing.T) {
t.Parallel()
const expect = false

reg := `(?i)^[0-9a-f]{32}$`
Expand All @@ -187,7 +172,6 @@ func TestIsEachMatches(t *testing.T) {
})

t.Run("FilledRegex_&_EmptyData)", func(t *testing.T) {
t.Parallel()
const expect = false

reg := `^38[0-9]{10}$`
Expand All @@ -199,7 +183,6 @@ func TestIsEachMatches(t *testing.T) {
})

t.Run("FilledRegex_&_EmptyData)", func(t *testing.T) {
t.Parallel()
const expect = false

reg := `^https\://img\.domain\.com/[0-9A-Fa-f]{32}\.(?:pn|jpe?)g$`
Expand Down
Loading

0 comments on commit 791d369

Please sign in to comment.