Skip to content

Commit

Permalink
add t.parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
manav2401 committed Sep 18, 2023
1 parent 2e7ea69 commit 6ce00f3
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions internal/cli/flagset/flagset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import (
)

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

f := NewFlagSet("")

value := true
Expand Down Expand Up @@ -43,6 +45,8 @@ func TestFlagsetBool(t *testing.T) {
}

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

f := NewFlagSet("")

value := "hello"
Expand Down Expand Up @@ -72,6 +76,8 @@ func TestFlagsetString(t *testing.T) {
}

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

f := NewFlagSet("")

value := 10
Expand Down Expand Up @@ -101,6 +107,8 @@ func TestFlagsetInt(t *testing.T) {
}

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

f := NewFlagSet("")

value := 10.0
Expand Down Expand Up @@ -134,6 +142,8 @@ func TestFlagsetFloat64(t *testing.T) {
}

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

f := NewFlagSet("")

value := big.NewInt(0)
Expand All @@ -159,6 +169,8 @@ func TestFlagsetBigInt(t *testing.T) {
}

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

f := NewFlagSet("")

value := []string{"a", "b", "c"}
Expand All @@ -185,6 +197,8 @@ func TestFlagsetSliceString(t *testing.T) {
}

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

f := NewFlagSet("")

value := time.Duration(0)
Expand All @@ -210,6 +224,8 @@ func TestFlagsetDuration(t *testing.T) {
}

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

f := NewFlagSet("")

value := map[string]string{}
Expand Down

0 comments on commit 6ce00f3

Please sign in to comment.