diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-01-08 15:46:35 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-01-09 14:09:53 +1100 |
commit | 18f48a43d5401af97dae18aab07238146b7d587b (patch) | |
tree | 5f220bac5ac7210ee5f30c80cba6d396a8f0b18f /pkg/commands/git_commands/branch_test.go | |
parent | 5d6d8942862428afb72bc45b562af10ceac6e0a3 (diff) |
add some more linters
Diffstat (limited to 'pkg/commands/git_commands/branch_test.go')
-rw-r--r-- | pkg/commands/git_commands/branch_test.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/commands/git_commands/branch_test.go b/pkg/commands/git_commands/branch_test.go index 447ccaaff..552165695 100644 --- a/pkg/commands/git_commands/branch_test.go +++ b/pkg/commands/git_commands/branch_test.go @@ -46,6 +46,7 @@ func TestBranchGetCommitDifferences(t *testing.T) { } for _, s := range scenarios { + s := s t.Run(s.testName, func(t *testing.T) { instance := NewBranchCommandsWithRunner(s.runner) pushables, pullables := instance.GetCommitDifferences("HEAD", "@{u}") @@ -93,6 +94,7 @@ func TestBranchDeleteBranch(t *testing.T) { } for _, s := range scenarios { + s := s t.Run(s.testName, func(t *testing.T) { instance := NewBranchCommandsWithRunner(s.runner) @@ -139,6 +141,7 @@ func TestBranchCheckout(t *testing.T) { } for _, s := range scenarios { + s := s t.Run(s.testName, func(t *testing.T) { instance := NewBranchCommandsWithRunner(s.runner) s.test(instance.Checkout("test", CheckoutOptions{Force: s.force})) @@ -218,6 +221,7 @@ func TestBranchCurrentBranchName(t *testing.T) { } for _, s := range scenarios { + s := s t.Run(s.testName, func(t *testing.T) { instance := NewBranchCommandsWithRunner(s.runner) s.test(instance.CurrentBranchName()) |