Skip to content

Commit 01b6a33

Browse files
committed
Fix tests
1 parent e56ad06 commit 01b6a33

3 files changed

Lines changed: 26 additions & 26 deletions

File tree

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121

2222
- setup_remote_docker
2323
- run: sudo apt install ruby
24-
- run: sudo gem install ci-scripts bundler
24+
- run: sudo gem install ci-scripts
2525

2626
- run: ci-scripts go/test
2727
- run: bash <(curl -s https://codecov.io/bash)

cmd/clone_test.go

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func TestCloneGithub(t *testing.T) {
3232
Repo: "test",
3333
User: "github_user",
3434
Host: "github.com",
35-
Url: "git@github.com:github_user/test",
35+
URL: "git@github.com:github_user/test",
3636
SourceDir: "/src/github.com/github_user",
3737
},
3838
},
@@ -43,7 +43,7 @@ func TestCloneGithub(t *testing.T) {
4343
Repo: "test",
4444
User: "username",
4545
Host: "github.com",
46-
Url: "git@github.com:username/test",
46+
URL: "git@github.com:username/test",
4747
SourceDir: "/src/github.com/username",
4848
},
4949
},
@@ -53,7 +53,7 @@ func TestCloneGithub(t *testing.T) {
5353
i.config.github()
5454
i.config.parseArgs(i.args)
5555
i.config.setSourceDir()
56-
i.config.setUrl()
56+
i.config.setURL()
5757

5858
checkStruct(t, &i)
5959
}
@@ -76,7 +76,7 @@ func TestCloneGitlabWithoutURLConfigured(t *testing.T) {
7676
Repo: "test",
7777
User: "gitlab_user",
7878
Host: "gitlab.com",
79-
Url: "git@gitlab.com:gitlab_user/test",
79+
URL: "git@gitlab.com:gitlab_user/test",
8080
SourceDir: "/src/gitlab.com/gitlab_user",
8181
},
8282
},
@@ -87,7 +87,7 @@ func TestCloneGitlabWithoutURLConfigured(t *testing.T) {
8787
Repo: "test",
8888
User: "username",
8989
Host: "gitlab.com",
90-
Url: "git@gitlab.com:username/test",
90+
URL: "git@gitlab.com:username/test",
9191
SourceDir: "/src/gitlab.com/username",
9292
},
9393
},
@@ -98,7 +98,7 @@ func TestCloneGitlabWithoutURLConfigured(t *testing.T) {
9898
i.config.gitlab()
9999
i.config.parseArgs(i.args)
100100
i.config.setSourceDir()
101-
i.config.setUrl()
101+
i.config.setURL()
102102

103103
checkStruct(t, &i)
104104
}
@@ -122,7 +122,7 @@ func TestCloneGitlabConfigured(t *testing.T) {
122122
Repo: "test",
123123
User: "gitlab_user",
124124
Host: "gitlab.somwhere.com",
125-
Url: "git@gitlab.somwhere.com:gitlab_user/test",
125+
URL: "git@gitlab.somwhere.com:gitlab_user/test",
126126
SourceDir: "/src/gitlab.somwhere.com/gitlab_user",
127127
},
128128
},
@@ -133,7 +133,7 @@ func TestCloneGitlabConfigured(t *testing.T) {
133133
Repo: "test",
134134
User: "username",
135135
Host: "gitlab.somwhere.com",
136-
Url: "git@gitlab.somwhere.com:username/test",
136+
URL: "git@gitlab.somwhere.com:username/test",
137137
SourceDir: "/src/gitlab.somwhere.com/username",
138138
},
139139
},
@@ -144,14 +144,14 @@ func TestCloneGitlabConfigured(t *testing.T) {
144144
i.config.gitlab()
145145
i.config.parseArgs(i.args)
146146
i.config.setSourceDir()
147-
i.config.setUrl()
147+
i.config.setURL()
148148

149149
checkStruct(t, &i)
150150
}
151151

152152
}
153153

154-
func TestCloneFullUrlWithoutGit(t *testing.T) {
154+
func TestCloneFullURLWithoutGit(t *testing.T) {
155155

156156
parser.DevctlConfig = &parser.Config{
157157
GithubUser: "github_user",
@@ -168,7 +168,7 @@ func TestCloneFullUrlWithoutGit(t *testing.T) {
168168
Repo: "project1",
169169
User: "user1",
170170
Host: "github.com",
171-
Url: "https://github.com/user1/project1",
171+
URL: "https://github.com/user1/project1",
172172
SourceDir: "/src/github.com/user1",
173173
},
174174
},
@@ -185,7 +185,7 @@ func TestCloneFullUrlWithoutGit(t *testing.T) {
185185

186186
}
187187

188-
func TestCloneFullUrl(t *testing.T) {
188+
func TestCloneFullURL(t *testing.T) {
189189

190190
parser.DevctlConfig = &parser.Config{
191191
GithubUser: "github_user",
@@ -202,7 +202,7 @@ func TestCloneFullUrl(t *testing.T) {
202202
Repo: "project1",
203203
User: "user1",
204204
Host: "github.com",
205-
Url: "https://github.com/user1/project1.git",
205+
URL: "https://github.com/user1/project1.git",
206206
SourceDir: "/src/github.com/user1",
207207
},
208208
},
@@ -213,7 +213,7 @@ func TestCloneFullUrl(t *testing.T) {
213213
Repo: "project1",
214214
User: "user1",
215215
Host: "github.com",
216-
Url: "git@github.com:user1/project1.git",
216+
URL: "git@github.com:user1/project1.git",
217217
SourceDir: "/src/github.com/user1",
218218
},
219219
},
@@ -224,7 +224,7 @@ func TestCloneFullUrl(t *testing.T) {
224224
Repo: "project3",
225225
User: "user2",
226226
Host: "gitlab.somewhere.com",
227-
Url: "git@gitlab.somewhere.com:user2/project3.git",
227+
URL: "git@gitlab.somewhere.com:user2/project3.git",
228228
SourceDir: "/src/gitlab.somewhere.com/user2",
229229
},
230230
},
@@ -235,7 +235,7 @@ func TestCloneFullUrl(t *testing.T) {
235235
Repo: "project",
236236
User: "user3",
237237
Host: "gitlab.somewhere.com",
238-
Url: "http://gitlab.somewhere.com/user3/project.git",
238+
URL: "http://gitlab.somewhere.com/user3/project.git",
239239
SourceDir: "/src/gitlab.somewhere.com/user3",
240240
},
241241
},
@@ -246,7 +246,7 @@ func TestCloneFullUrl(t *testing.T) {
246246
Repo: "project1",
247247
User: "user1",
248248
Host: "github.com",
249-
Url: "git@github.com:user1/project1.git",
249+
URL: "git@github.com:user1/project1.git",
250250
SourceDir: "/src/github.com/user1",
251251
},
252252
},
@@ -257,7 +257,7 @@ func TestCloneFullUrl(t *testing.T) {
257257
Repo: "project1",
258258
User: "user1",
259259
Host: "github.com",
260-
Url: "git@github.com:user1/project1.git",
260+
URL: "git@github.com:user1/project1.git",
261261
SourceDir: "/src/github.com/user1",
262262
},
263263
},
@@ -279,7 +279,7 @@ func TestCloneFullUrl(t *testing.T) {
279279

280280
// viper.SetDefault("github_user", "github_user")
281281
// viper.SetDefault("source_dir", "/")
282-
// viper.SetDefault("gitlab_url", "gitlab.somwhere.com")
282+
// viper.SetDefault("gitlab_uRL", "gitlab.somwhere.com")
283283
// viper.SetDefault("gitlab_user", "gitlab_user")
284284

285285
// testStructs := []testStruct{
@@ -290,7 +290,7 @@ func TestCloneFullUrl(t *testing.T) {
290290
// Repo: "test",
291291
// User: "gitlab_user",
292292
// Host: "gitlab.somwhere.com",
293-
// Url: "gitlab.somwhere.com",
293+
// URL: "gitlab.somwhere.com",
294294
// SourceDir: "/src/gitlab.somwhere.com/gitlab_user",
295295
// },
296296
// },
@@ -311,7 +311,7 @@ func TestCloneFullUrl(t *testing.T) {
311311

312312
// viper.SetDefault("github_user", "github_user")
313313
// viper.SetDefault("source_dir", "/")
314-
// // viper.SetDefault("gitlab_url", "")
314+
// // viper.SetDefault("gitlab_uRL", "")
315315
// // viper.SetDefault("gitlab_user", "")
316316

317317
// testStructs := []testStruct{
@@ -322,7 +322,7 @@ func TestCloneFullUrl(t *testing.T) {
322322
// Repo: "test",
323323
// User: "github_user",
324324
// Host: "github.com",
325-
// Url: "github.com",
325+
// URL: "github.com",
326326
// SourceDir: "",
327327
// },
328328
// },
@@ -333,7 +333,7 @@ func TestCloneFullUrl(t *testing.T) {
333333
// Repo: "test",
334334
// User: "username",
335335
// Host: "github.com",
336-
// Url: "github.com",
336+
// URL: "github.com",
337337
// SourceDir: "",
338338
// },
339339
// },

cmd/open.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ var createPRCmd = &cobra.Command{
5757
},
5858
}
5959

60-
var PRsCmd = &cobra.Command{
60+
var pRsCmd = &cobra.Command{
6161
Use: "prs",
6262
Short: "Open projects pull requests page",
6363
Run: func(cmd *cobra.Command, args []string) {
@@ -87,5 +87,5 @@ func init() {
8787
openCmd.AddCommand(issueCmd)
8888
openCmd.AddCommand(issuesCmd)
8989
openCmd.AddCommand(createPRCmd)
90-
openCmd.AddCommand(PRsCmd)
90+
openCmd.AddCommand(pRsCmd)
9191
}

0 commit comments

Comments
 (0)