Skip to content

Commit

Permalink
change variable name to follow the golang community conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
yassinebenaid committed Jan 27, 2024
1 parent 70833a3 commit 923f1ef
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions flag_bool_with_inverse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
)

var (
bothEnvFlagsAreSetError = fmt.Errorf("cannot set both flags `--env` and `--no-env`")
errBothEnvFlagsAreSet = fmt.Errorf("cannot set both flags `--env` and `--no-env`")
)

type boolWithInverseTestCase struct {
Expand Down Expand Up @@ -98,7 +98,7 @@ func TestBoolWithInverseBasic(t *testing.T) {
},
{
args: []string{"--env", "--no-env"},
err: bothEnvFlagsAreSetError,
err: errBothEnvFlagsAreSet,
},
}

Expand Down Expand Up @@ -146,7 +146,7 @@ func TestBoolWithInverseAction(t *testing.T) {
},
{
args: []string{"--env", "--no-env"},
err: bothEnvFlagsAreSetError,
err: errBothEnvFlagsAreSet,
},
}

Expand Down Expand Up @@ -184,7 +184,7 @@ func TestBoolWithInverseAlias(t *testing.T) {
},
{
args: []string{"--do-env", "--no-do-env"},
err: bothEnvFlagsAreSetError,
err: errBothEnvFlagsAreSet,
},
}

Expand Down Expand Up @@ -232,7 +232,7 @@ func TestBoolWithInverseEnvVars(t *testing.T) {
value: false,
},
{
err: bothEnvFlagsAreSetError,
err: errBothEnvFlagsAreSet,
envVars: map[string]string{
"ENV": "true",
"NO-ENV": "true",
Expand Down Expand Up @@ -313,7 +313,7 @@ func TestBoolWithInverseRequired(t *testing.T) {
},
{
args: []string{"--env", "--no-env"},
err: bothEnvFlagsAreSetError,
err: errBothEnvFlagsAreSet,
},
}

Expand Down

0 comments on commit 923f1ef

Please sign in to comment.