Skip to content

Commit 594cbfc

Browse files
committed
test: more suggestions from lgtm for c.Called
1 parent b7b3897 commit 594cbfc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

internal/repository/github/github_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ func (c *mockService) GetArchiveLink(owner string, repo string, archiveFormat gi
252252
return args.Get(0).(*url.URL), r, args.Error(2)
253253
}
254254

255-
func (c *mockService) ListRepositoryIssues(owner, repo string, opts *github.IssueListByRepoOptions) ([]*github.Issue, *github.Response, error) {
255+
func (c *mockService) ListRepositoryIssues(owner string, repo string, opts *github.IssueListByRepoOptions) ([]*github.Issue, *github.Response, error) {
256256
args := c.Called(owner, repo, opts)
257257
var r *github.Response
258258
if resp := args.Get(1); resp != nil {
@@ -264,8 +264,8 @@ func (c *mockService) ListRepositoryIssues(owner, repo string, opts *github.Issu
264264
return args.Get(0).([]*github.Issue), r, args.Error(2)
265265
}
266266

267-
func (c *mockService) CreateIssue(owner, repo string, issue *github.IssueRequest) (*github.Issue, *github.Response, error) {
268-
args := c.Called(owner, repo)
267+
func (c *mockService) CreateIssue(owner string, repo string, issue *github.IssueRequest) (*github.Issue, *github.Response, error) {
268+
args := c.Called(owner, repo, issue)
269269
var r *github.Response
270270
if resp := args.Get(1); resp != nil {
271271
r = args.Get(1).(*github.Response)
@@ -274,7 +274,7 @@ func (c *mockService) CreateIssue(owner, repo string, issue *github.IssueRequest
274274
}
275275

276276
func (c *mockService) UpdateIssue(owner string, repo string, number int, issue *github.IssueRequest) (*github.Issue, *github.Response, error) {
277-
args := c.Called(owner, repo)
277+
args := c.Called(owner, repo, number, issue)
278278
var r *github.Response
279279
if resp := args.Get(1); resp != nil {
280280
r = args.Get(1).(*github.Response)

0 commit comments

Comments
 (0)