mocks

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 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) GetPullRequestCountPage

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

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

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) GetUserReposPage

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

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

type GitHubClient_Expecter

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

func (*GitHubClient_Expecter) GetPullRequestCountPage

func (_e *GitHubClient_Expecter) GetPullRequestCountPage(_a0 interface{}, _a1 interface{}, _a2 interface{}, _a3 interface{}) *GitHubClient_GetPullRequestCountPage_Call

GetPullRequestCountPage is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string
  • _a2 string
  • _a3 int

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) GetUserReposPage

func (_e *GitHubClient_Expecter) GetUserReposPage(_a0 interface{}, _a1 interface{}, _a2 interface{}) *GitHubClient_GetUserReposPage_Call

GetUserReposPage is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string
  • _a2 int

type GitHubClient_GetPullRequestCountPage_Call

type GitHubClient_GetPullRequestCountPage_Call struct {
	*mock.Call
}

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

func (*GitHubClient_GetPullRequestCountPage_Call) Return

func (*GitHubClient_GetPullRequestCountPage_Call) Run

func (*GitHubClient_GetPullRequestCountPage_Call) RunAndReturn

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_GetUserReposPage_Call

type GitHubClient_GetUserReposPage_Call struct {
	*mock.Call
}

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

func (*GitHubClient_GetUserReposPage_Call) Return

func (*GitHubClient_GetUserReposPage_Call) Run

func (*GitHubClient_GetUserReposPage_Call) RunAndReturn

Jump to

Keyboard shortcuts

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