Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7f04d9d

Browse files
committed
yolo, you aint got nothing on me, misspell
1 parente86499f commit7f04d9d

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

‎cli/open_internal_test.go‎

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,25 @@ func Test_resolveAgentAbsPath(t *testing.T) {
1818
wantErrbool
1919
}{
2020
{"ok no args",args{},"",false},
21-
{"ok only working directory",args{workingDirectory:"/some/path"},"/some/path",false},
22-
{"ok with working directory and rel path",args{workingDirectory:"/some/path",relOrAbsPath:"other/path"},"/some/path/other/path",false},
23-
{"ok with working directory and abs path",args{workingDirectory:"/some/path",relOrAbsPath:"/other/path"},"/other/path",false},
24-
{"ok with no working directory and abs path",args{relOrAbsPath:"/other/path"},"/other/path",false},
21+
{"ok only working directory",args{workingDirectory:"/workdir"},"/workdir",false},
22+
{"ok with working directory and rel path",args{workingDirectory:"/workdir",relOrAbsPath:"my/path"},"/workdir/my/path",false},
23+
{"ok with working directory and abs path",args{workingDirectory:"/workdir",relOrAbsPath:"/my/path"},"/my/path",false},
24+
{"ok with no working directory and abs path",args{relOrAbsPath:"/my/path"},"/my/path",false},
2525

2626
{"fail tilde",args{relOrAbsPath:"~"},"",true},
27-
{"fail tilde with working directory",args{workingDirectory:"/some/path",relOrAbsPath:"~"},"",true},
28-
{"fail tilde path",args{relOrAbsPath:"~/some/path"},"",true},
29-
{"fail tilde path with working directory",args{workingDirectory:"/some/path",relOrAbsPath:"~/some/path"},"",true},
27+
{"fail tilde with working directory",args{workingDirectory:"/workdir",relOrAbsPath:"~"},"",true},
28+
{"fail tilde path",args{relOrAbsPath:"~/workdir"},"",true},
29+
{"fail tilde path with working directory",args{workingDirectory:"/workdir",relOrAbsPath:"~/workdir"},"",true},
3030
{"fail relative dot with no working directory",args{relOrAbsPath:"."},"",true},
31-
{"fail relative with no working directory",args{relOrAbsPath:"some/path"},"",true},
31+
{"fail relative with no working directory",args{relOrAbsPath:"workdir"},"",true},
3232

33-
{"ok with working directory and rel path on windows",args{workingDirectory:"C:\\some\\path",relOrAbsPath:"other\\path",agentOS:"windows"},"C:\\some\\path\\other\\path",false},
34-
{"ok with working directory and abs path on windows",args{workingDirectory:"C:\\some\\path",relOrAbsPath:"C:\\other\\path",agentOS:"windows"},"C:\\other\\path",false},
35-
{"ok with no working directory and abs path on windows",args{relOrAbsPath:"C:\\other\\path",agentOS:"windows"},"C:\\other\\path",false},
36-
{"ok abs unix path on windows",args{workingDirectory:"C:\\some\\path",relOrAbsPath:"/other/path",agentOS:"windows"},"\\other\\path",false},
37-
{"ok rel unix path on windows",args{workingDirectory:"C:\\some\\path",relOrAbsPath:"other/path",agentOS:"windows"},"C:\\some\\path\\other\\path",false},
33+
{"ok with working directory and rel path on windows",args{workingDirectory:"C:\\workdir",relOrAbsPath:"my\\path",agentOS:"windows"},"C:\\workdir\\my\\path",false},
34+
{"ok with working directory and abs path on windows",args{workingDirectory:"C:\\workdir",relOrAbsPath:"C:\\my\\path",agentOS:"windows"},"C:\\my\\path",false},
35+
{"ok with no working directory and abs path on windows",args{relOrAbsPath:"C:\\my\\path",agentOS:"windows"},"C:\\my\\path",false},
36+
{"ok abs unix path on windows",args{workingDirectory:"C:\\workdir",relOrAbsPath:"/my/path",agentOS:"windows"},"\\my\\path",false},
37+
{"ok rel unix path on windows",args{workingDirectory:"C:\\workdir",relOrAbsPath:"my/path",agentOS:"windows"},"C:\\workdir\\my\\path",false},
3838

39-
{"fail with no working directory and rel path on windows",args{relOrAbsPath:"other\\path",agentOS:"windows"},"",true},
39+
{"fail with no working directory and rel path on windows",args{relOrAbsPath:"my\\path",agentOS:"windows"},"",true},
4040
}
4141
for_,tt:=rangetests {
4242
tt:=tt

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp