mocks

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 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

func (_m *GitHubClient) EXPECT() *GitHubClient_Expecter

func (*GitHubClient) GetPullRequestCount added in v0.4.0

func (_m *GitHubClient) GetPullRequestCount(_a0 context.Context, _a1 string, _a2 string) (int, error)

GetPullRequestCount provides a mock function with given fields: _a0, _a1, _a2

func (*GitHubClient) GetRepoStats

func (_m *GitHubClient) GetRepoStats(_a0 context.Context, _a1 string, _a2 string) (github.RepoStats, error)

GetRepoStats provides a mock function with given fields: _a0, _a1, _a2

func (*GitHubClient) GetUserRepoNames added in v0.4.0

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

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

type GitHubClient_Expecter

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

func (*GitHubClient_Expecter) GetPullRequestCount added in v0.4.0

func (_e *GitHubClient_Expecter) GetPullRequestCount(_a0 interface{}, _a1 interface{}, _a2 interface{}) *GitHubClient_GetPullRequestCount_Call

GetPullRequestCount is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string
  • _a2 string

func (*GitHubClient_Expecter) GetRepoStats

func (_e *GitHubClient_Expecter) GetRepoStats(_a0 interface{}, _a1 interface{}, _a2 interface{}) *GitHubClient_GetRepoStats_Call

GetRepoStats is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string
  • _a2 string

func (*GitHubClient_Expecter) GetUserRepoNames added in v0.4.0

func (_e *GitHubClient_Expecter) GetUserRepoNames(_a0 interface{}, _a1 interface{}) *GitHubClient_GetUserRepoNames_Call

GetUserRepoNames is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string

type GitHubClient_GetPullRequestCount_Call added in v0.4.0

type GitHubClient_GetPullRequestCount_Call struct {
	*mock.Call
}

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

func (*GitHubClient_GetPullRequestCount_Call) Return added in v0.4.0

func (*GitHubClient_GetPullRequestCount_Call) Run added in v0.4.0

func (*GitHubClient_GetPullRequestCount_Call) RunAndReturn added in v0.4.0

type GitHubClient_GetRepoStats_Call

type GitHubClient_GetRepoStats_Call struct {
	*mock.Call
}

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

func (*GitHubClient_GetRepoStats_Call) Return

func (*GitHubClient_GetRepoStats_Call) Run

func (*GitHubClient_GetRepoStats_Call) RunAndReturn

type GitHubClient_GetUserRepoNames_Call added in v0.4.0

type GitHubClient_GetUserRepoNames_Call struct {
	*mock.Call
}

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

func (*GitHubClient_GetUserRepoNames_Call) Return added in v0.4.0

func (*GitHubClient_GetUserRepoNames_Call) Run added in v0.4.0

func (*GitHubClient_GetUserRepoNames_Call) RunAndReturn added in v0.4.0

Jump to

Keyboard shortcuts

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