diff options
author | Valery Piashchynski <[email protected]> | 2024-02-15 20:17:05 +0100 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2024-02-15 20:17:05 +0100 |
commit | 84e2dbd1079ad3f4da65fb5d9a1f45f72b54c007 (patch) | |
tree | dca0c16548e3637b4df859aeb4bae56249c7d16c /internal | |
parent | 5bb3efea4b06f179c187e68ff573c91787981ae2 (diff) |
release: 2023.3.11
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'internal')
-rw-r--r-- | internal/cli/root_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/cli/root_test.go b/internal/cli/root_test.go index 856c9a9a..67ed9fdf 100644 --- a/internal/cli/root_test.go +++ b/internal/cli/root_test.go @@ -78,7 +78,7 @@ func TestCommandSimpleExecuting(t *testing.T) { var executed bool if cmd.Run == nil { // override "Run" property for test (if it was not set) - cmd.Run = func(cmd *cobra.Command, args []string) { + cmd.Run = func(_ *cobra.Command, _ []string) { executed = true } } @@ -94,7 +94,7 @@ func TestCommandNoEnvFileError(t *testing.T) { var executed bool if cmd.Run == nil { // override "Run" property for test (if it was not set) - cmd.Run = func(cmd *cobra.Command, args []string) { + cmd.Run = func(_ *cobra.Command, _ []string) { executed = true } } @@ -122,7 +122,7 @@ func TestCommandNoEnvFileNoError(t *testing.T) { }() if cmd.Run == nil { // override "Run" property for test (if it was not set) - cmd.Run = func(cmd *cobra.Command, args []string) { + cmd.Run = func(_ *cobra.Command, _ []string) { executed = true } } @@ -150,7 +150,7 @@ func TestCommandWorkingDir(t *testing.T) { require.NoError(t, err) if cmd.Run == nil { // override "Run" property for test (if it was not set) - cmd.Run = func(cmd *cobra.Command, args []string) { + cmd.Run = func(_ *cobra.Command, _ []string) { executed = true wd, _ = os.Getwd() } |