mocks

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 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) EXPECT added in v0.2.0

func (_m *GitHubClient) EXPECT() *GitHubClient_Expecter

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

type GitHubClient_Expecter added in v0.2.0

type GitHubClient_Expecter struct {
	// contains filtered or unexported fields
}

func (*GitHubClient_Expecter) GetPullRequests added in v0.2.0

func (_e *GitHubClient_Expecter) GetPullRequests(_a0 interface{}, _a1 interface{}) *GitHubClient_GetPullRequests_Call

GetPullRequests is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string

func (*GitHubClient_Expecter) GetRepo added in v0.2.0

func (_e *GitHubClient_Expecter) GetRepo(_a0 interface{}, _a1 interface{}) *GitHubClient_GetRepo_Call

GetRepo is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string

func (*GitHubClient_Expecter) GetUserRepos added in v0.2.0

func (_e *GitHubClient_Expecter) GetUserRepos(_a0 interface{}, _a1 interface{}) *GitHubClient_GetUserRepos_Call

GetUserRepos is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string

type GitHubClient_GetPullRequests_Call added in v0.2.0

type GitHubClient_GetPullRequests_Call struct {
	*mock.Call
}

GitHubClient_GetPullRequests_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPullRequests'

func (*GitHubClient_GetPullRequests_Call) Return added in v0.2.0

func (*GitHubClient_GetPullRequests_Call) Run added in v0.2.0

func (*GitHubClient_GetPullRequests_Call) RunAndReturn added in v0.2.0

type GitHubClient_GetRepo_Call added in v0.2.0

type GitHubClient_GetRepo_Call struct {
	*mock.Call
}

GitHubClient_GetRepo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRepo'

func (*GitHubClient_GetRepo_Call) Return added in v0.2.0

func (*GitHubClient_GetRepo_Call) Run added in v0.2.0

func (*GitHubClient_GetRepo_Call) RunAndReturn added in v0.2.0

type GitHubClient_GetUserRepos_Call added in v0.2.0

type GitHubClient_GetUserRepos_Call struct {
	*mock.Call
}

GitHubClient_GetUserRepos_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserRepos'

func (*GitHubClient_GetUserRepos_Call) Return added in v0.2.0

func (*GitHubClient_GetUserRepos_Call) Run added in v0.2.0

func (*GitHubClient_GetUserRepos_Call) RunAndReturn added in v0.2.0

Jump to

Keyboard shortcuts

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