mocks

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitHubClient

type GitHubClient struct {
	mock.Mock
}

GitHubClient is an autogenerated mock type for the GitHubClient type

func NewGitHubClient

func NewGitHubClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *GitHubClient

NewGitHubClient creates a new instance of GitHubClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*GitHubClient) GetPullRequests

func (_m *GitHubClient) GetPullRequests(_a0 context.Context, _a1 string) ([]*github.PullRequest, error)

GetPullRequests provides a mock function with given fields: _a0, _a1

func (*GitHubClient) GetRepo

func (_m *GitHubClient) GetRepo(_a0 context.Context, _a1 string) (*github.Repository, error)

GetRepo provides a mock function with given fields: _a0, _a1

func (*GitHubClient) GetUserRepos

func (_m *GitHubClient) GetUserRepos(_a0 context.Context, _a1 string) ([]*github.Repository, error)

GetUserRepos provides a mock function with given fields: _a0, _a1

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL