diff options
Diffstat (limited to 'pkg/commands/patch/patch_modifier_test.go')
-rw-r--r-- | pkg/commands/patch/patch_modifier_test.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/commands/patch/patch_modifier_test.go b/pkg/commands/patch/patch_modifier_test.go index 8b866019b..ec79cbe32 100644 --- a/pkg/commands/patch/patch_modifier_test.go +++ b/pkg/commands/patch/patch_modifier_test.go @@ -511,6 +511,7 @@ func TestModifyPatchForRange(t *testing.T) { } for _, s := range scenarios { + s := s t.Run(s.testName, func(t *testing.T) { result := ModifiedPatchForRange(nil, s.filename, s.diffText, s.firstLineIndex, s.lastLineIndex, s.reverse, false) if !assert.Equal(t, s.expected, result) { @@ -538,6 +539,7 @@ func TestLineNumberOfLine(t *testing.T) { } for _, s := range scenarios { + s := s t.Run(s.testName, func(t *testing.T) { result := s.hunk.LineNumberOfLine(s.idx) if !assert.Equal(t, s.expected, result) { |