6
0
mirror of https://github.com/grdl/git-get.git synced 2026-02-04 15:39:46 +00:00

Fix issues found by wsl linter

This commit is contained in:
Grzegorz Dlugoszewski
2025-08-24 14:54:02 +02:00
parent 59aaaffe35
commit 0bf2765349
16 changed files with 59 additions and 15 deletions

View File

@@ -83,6 +83,7 @@ func TestDetermineCommand(t *testing.T) {
t.Run(tt.name, func(t *testing.T) {
// Save original os.Args
oldArgs := os.Args
defer func() { os.Args = oldArgs }()
// Set test args
@@ -144,6 +145,7 @@ func TestHandleGitGetInvocation(t *testing.T) {
t.Run(tt.name, func(t *testing.T) {
// Save original os.Args
oldArgs := os.Args
defer func() { os.Args = oldArgs }()
// Set test args
@@ -187,6 +189,7 @@ func TestHandleGitListInvocation(t *testing.T) {
t.Run(tt.name, func(t *testing.T) {
// Save original os.Args
oldArgs := os.Args
defer func() { os.Args = oldArgs }()
// Set test args
@@ -236,6 +239,7 @@ func TestHandleDefaultInvocation(t *testing.T) {
t.Run(tt.name, func(t *testing.T) {
// Save original os.Args
oldArgs := os.Args
defer func() { os.Args = oldArgs }()
// Set test args
@@ -252,4 +256,4 @@ func TestHandleDefaultInvocation(t *testing.T) {
}
})
}
}
}