Skip to content

Commit de8dc93

Browse files
LuxxxLucyjesseduffield
authored andcommitted
use unsigned integer in test and fix CI/linter complaint
1 parent dd76580 commit de8dc93

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

pkg/commands/git_commands/commit_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ func TestCommitShowCmdObj(t *testing.T) {
230230
type scenario struct {
231231
testName string
232232
filterPath string
233-
contextSize int
233+
contextSize uint64
234234
similarityThreshold int
235235
ignoreWhitespace bool
236236
extDiffCmd string

pkg/commands/git_commands/stash_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ func TestStashStashEntryCmdObj(t *testing.T) {
100100
type scenario struct {
101101
testName string
102102
index int
103-
contextSize int
103+
contextSize uint64
104104
similarityThreshold int
105105
ignoreWhitespace bool
106106
expected []string

pkg/commands/git_commands/working_tree_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ func TestWorkingTreeDiff(t *testing.T) {
210210
plain bool
211211
cached bool
212212
ignoreWhitespace bool
213-
contextSize int
213+
contextSize uint64
214214
similarityThreshold int
215215
runner *oscommands.FakeCmdObjRunner
216216
}
@@ -352,7 +352,7 @@ func TestWorkingTreeShowFileDiff(t *testing.T) {
352352
reverse bool
353353
plain bool
354354
ignoreWhitespace bool
355-
contextSize int
355+
contextSize uint64
356356
runner *oscommands.FakeCmdObjRunner
357357
}
358358

0 commit comments

Comments
 (0)