Skip to content

Commit

Permalink
Merge pull request #7 from johnmanjiro13/go-generate-mocks
Browse files Browse the repository at this point in the history
refactor: Use go generate to generate mock
  • Loading branch information
johnmanjiro13 committed Sep 5, 2022
2 parents eb7e961 + 2456da3 commit 0273bd0
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 28 deletions.
7 changes: 0 additions & 7 deletions Makefile

This file was deleted.

1 change: 1 addition & 0 deletions pkg/comment/comment.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
)

//go:generate mockgen -source=$GOFILE -package=mock_$GOPACKAGE -destination=mock_$GOPACKAGE/mock_$GOPACKAGE.go
type Client interface {
GetComment(ctx context.Context, id int64) (*Comment, error)
CreateComment(ctx context.Context, sha, body string, opt *CreateOption) (*Comment, error)
Expand Down
42 changes: 21 additions & 21 deletions pkg/comment/mock_comment/mock_comment.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0273bd0

Please sign in to comment.