Skip to content

Commit

Permalink
Fixing make checl
Browse files Browse the repository at this point in the history
  • Loading branch information
Kostov6 committed Feb 8, 2024
1 parent c5094b6 commit f60aace
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,24 @@ type GHC struct {
}

//counterfeiter:generate . RateLimitSource

// RateLimitSource is an interface needed for faking
type RateLimitSource interface {
RateLimits(ctx context.Context) (*github.RateLimits, *github.Response, error)
}

//counterfeiter:generate . Repositories

// Repositories is an interface needed for faking
type Repositories interface {
ListCommits(ctx context.Context, owner, repo string, opts *github.CommitsListOptions) ([]*github.RepositoryCommit, *github.Response, error)
GetContents(ctx context.Context, owner, repo, path string, opts *github.RepositoryContentGetOptions) (fileContent *github.RepositoryContent, directoryContent []*github.RepositoryContent, resp *github.Response, err error)
Get(ctx context.Context, owner, repo string) (*github.Repository, *github.Response, error)
}

//counterfeiter:generate . Git

// Git is an interface needed for faking
type Git interface {
GetBlobRaw(ctx context.Context, owner, repo, sha string) ([]byte, *github.Response, error)
GetTree(ctx context.Context, owner string, repo string, sha string, recursive bool) (*github.Tree, *github.Response, error)
Expand Down

0 comments on commit f60aace

Please sign in to comment.