Skip to content

Commit 1fe4fcc

Browse files
committed
update test
1 parent 6b6d698 commit 1fe4fcc

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

pkg/parse.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func ParseRepo(src string) (*Repo, error) {
2222
match := re.FindStringSubmatch(src)
2323
if match == nil {
2424
return nil, fmt.Errorf(
25-
"cant recognize %s as a git repository, example: github.com/user/repo",
25+
"can't recognize %s as a git repository, example: github.com/user/repo",
2626
src,
2727
)
2828
}

pkg/parse_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,10 @@ func TestParse(t *testing.T) {
6767
{
6868
name: "Invalid URL",
6969
url: "invalid-url",
70-
err: fmt.Errorf("could not parse invalid-url"),
70+
err: fmt.Errorf(
71+
"can't recognize %s as a git repository, example: github.com/user/repo",
72+
"invalid-url",
73+
),
7174
},
7275
}
7376

0 commit comments

Comments
 (0)