-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from jkawamoto/hotfix/v0.7.1
Hotfix/v0.7.1
- Loading branch information
Showing
9 changed files
with
136 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[bumpversion] | ||
current_version = 0.7.0 | ||
current_version = 0.7.1 | ||
commit = True | ||
|
||
[bumpversion:file:README.md] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
// | ||
// upload_windows_test.go | ||
// | ||
// Copyright (c) 2018-2023 Junpei Kawamoto | ||
// | ||
// This software is released under the MIT License. | ||
// | ||
// http://opensource.org/licenses/mit-license.php | ||
|
||
package command | ||
|
||
import "testing" | ||
|
||
func Test_parseArgument_windows(t *testing.T) { | ||
tests := []struct { | ||
arg string | ||
wantPath string | ||
wantName string | ||
}{ | ||
{ | ||
arg: "\"C:\\windows\\path_only\"", | ||
wantPath: "C:\\windows\\path_only", | ||
}, | ||
{ | ||
arg: "\"C:\\windows path\":\"quoted name\"", | ||
wantPath: "C:\\windows path", | ||
wantName: "quoted name", | ||
}, | ||
{ | ||
arg: "C:\\windows\\unquoted_path", | ||
wantPath: "C:\\windows\\unquoted_path", | ||
}, | ||
{ | ||
arg: "C:\\windows unquoted_path:\"quoted name\"", | ||
wantPath: "C:\\windows unquoted_path", | ||
wantName: "quoted name", | ||
}, | ||
} | ||
for _, tt := range tests { | ||
t.Run(tt.arg, func(t *testing.T) { | ||
gotPath, gotName, err := parseArgument(tt.arg) | ||
if err != nil { | ||
t.Fatal(err) | ||
} | ||
if gotPath != tt.wantPath { | ||
t.Errorf("parseArgument() gotPath = %v, want %v", gotPath, tt.wantPath) | ||
} | ||
if gotName != tt.wantName { | ||
t.Errorf("parseArgument() gotName = %v, want %v", gotName, tt.wantName) | ||
} | ||
}) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters