@@ -21,12 +21,12 @@ func TestUpdateRemote_ReplacesExistingRemote(t *testing.T) {
2121 oldCalRemote := "https://github.com/git-calendar/old-calendar.git"
2222 newCalRemote := "https://github.com/git-calendar/new-calendar.git"
2323
24- err = c .UpdateRemote (testCalendarName , mustParseUrl (oldCalRemote ), false )
24+ err = c .UpdateRemote (testCalendarName , mustParseURL (oldCalRemote ), false )
2525 if err != nil {
2626 t .Fatalf ("failed to set initial remotes: %v" , err )
2727 }
2828
29- err = c .UpdateRemote (testCalendarName , mustParseUrl (newCalRemote ), true )
29+ err = c .UpdateRemote (testCalendarName , mustParseURL (newCalRemote ), true )
3030 if err != nil {
3131 t .Fatalf ("failed to replace remotes: %v" , err )
3232 }
@@ -44,12 +44,12 @@ func TestUpdateRemote_ReplacesExistingRemote(t *testing.T) {
4444 if calendar .Name != testCalendarName {
4545 continue
4646 }
47- remoteUrl , err := calendar .RemoteURL ()
47+ remoteURL , err := calendar .RemoteURL ()
4848 if err != nil {
4949 t .Fatalf ("failed to get remote url: %v" , err )
5050 }
51- if remoteUrl != newCalRemote {
52- t .Fatalf ("remote url mismatch: got %v, want %v" , remoteUrl , newCalRemote )
51+ if remoteURL != newCalRemote {
52+ t .Fatalf ("remote url mismatch: got %v, want %v" , remoteURL , newCalRemote )
5353 }
5454 if ! calendar .Readonly {
5555 t .Fatal ("calendar is not read-only after updating the remote" )
@@ -75,7 +75,7 @@ func TestUpdateRemote_DeletesWhenEmpty(t *testing.T) {
7575 _ = c .RemoveCalendar (testCalendarName )
7676 })
7777
78- err = c .UpdateRemote (testCalendarName , mustParseUrl ("https://github.com/git-calendar/calendar.git" ), true )
78+ err = c .UpdateRemote (testCalendarName , mustParseURL ("https://github.com/git-calendar/calendar.git" ), true )
7979 if err != nil {
8080 t .Fatalf ("failed to set remotes: %v" , err )
8181 }
@@ -98,12 +98,12 @@ func TestUpdateRemote_DeletesWhenEmpty(t *testing.T) {
9898 if calendar .Name != testCalendarName {
9999 continue
100100 }
101- remoteUrl , err := calendar .RemoteURL ()
101+ remoteURL , err := calendar .RemoteURL ()
102102 if err != nil {
103103 t .Fatalf ("failed to get remote url: %v" , err )
104104 }
105- if remoteUrl != "" {
106- t .Fatalf ("remote url mismatch: got %v, want \" \" " , remoteUrl )
105+ if remoteURL != "" {
106+ t .Fatalf ("remote url mismatch: got %v, want \" \" " , remoteURL )
107107 }
108108 if calendar .Readonly {
109109 t .Fatal ("calendar is still read-only after clearing the remote" )
@@ -125,7 +125,7 @@ func TestUpdateRemote_MissingCalendar(t *testing.T) {
125125 t .Fatal (err )
126126 }
127127
128- err = c .UpdateRemote (testCalendarName , mustParseUrl ("https://github.com/git-calendar/calendar.git" ), false )
128+ err = c .UpdateRemote (testCalendarName , mustParseURL ("https://github.com/git-calendar/calendar.git" ), false )
129129 if err == nil {
130130 t .Fatal ("expected error, got nil" )
131131 }
0 commit comments