mocks

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2025 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 PullRequests

type PullRequests struct {
	mock.Mock
}

PullRequests is an autogenerated mock type for the PullRequests type

func NewPullRequests

func NewPullRequests(t interface {
	mock.TestingT
	Cleanup(func())
}) *PullRequests

NewPullRequests creates a new instance of PullRequests. 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 (*PullRequests) EXPECT

func (_m *PullRequests) EXPECT() *PullRequests_Expecter

func (*PullRequests) List

func (_mock *PullRequests) List(context1 context.Context, s string, s1 string, pullRequestListOptions *github.PullRequestListOptions) ([]*github.PullRequest, *github.Response, error)

List provides a mock function for the type PullRequests

type PullRequests_Expecter

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

func (*PullRequests_Expecter) List

func (_e *PullRequests_Expecter) List(context1 interface{}, s interface{}, s1 interface{}, pullRequestListOptions interface{}) *PullRequests_List_Call

List is a helper method to define mock.On call

  • context1 context.Context
  • s string
  • s1 string
  • pullRequestListOptions *github.PullRequestListOptions

type PullRequests_List_Call

type PullRequests_List_Call struct {
	*mock.Call
}

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

func (*PullRequests_List_Call) Return

func (_c *PullRequests_List_Call) Return(pullRequests []*github.PullRequest, response *github.Response, err error) *PullRequests_List_Call

func (*PullRequests_List_Call) Run

func (_c *PullRequests_List_Call) Run(run func(context1 context.Context, s string, s1 string, pullRequestListOptions *github.PullRequestListOptions)) *PullRequests_List_Call

func (*PullRequests_List_Call) RunAndReturn

func (_c *PullRequests_List_Call) RunAndReturn(run func(context1 context.Context, s string, s1 string, pullRequestListOptions *github.PullRequestListOptions) ([]*github.PullRequest, *github.Response, error)) *PullRequests_List_Call

type Repositories

type Repositories struct {
	mock.Mock
}

Repositories is an autogenerated mock type for the Repositories type

func NewRepositories

func NewRepositories(t interface {
	mock.TestingT
	Cleanup(func())
}) *Repositories

NewRepositories creates a new instance of Repositories. 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 (*Repositories) EXPECT

func (_m *Repositories) EXPECT() *Repositories_Expecter

func (*Repositories) Get

func (_mock *Repositories) Get(context1 context.Context, s string, s1 string) (*github.Repository, *github.Response, error)

Get provides a mock function for the type Repositories

func (*Repositories) ListByUser

func (_mock *Repositories) ListByUser(context1 context.Context, s string, repositoryListByUserOptions *github.RepositoryListByUserOptions) ([]*github.Repository, *github.Response, error)

ListByUser provides a mock function for the type Repositories

type Repositories_Expecter

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

func (*Repositories_Expecter) Get

func (_e *Repositories_Expecter) Get(context1 interface{}, s interface{}, s1 interface{}) *Repositories_Get_Call

Get is a helper method to define mock.On call

  • context1 context.Context
  • s string
  • s1 string

func (*Repositories_Expecter) ListByUser

func (_e *Repositories_Expecter) ListByUser(context1 interface{}, s interface{}, repositoryListByUserOptions interface{}) *Repositories_ListByUser_Call

ListByUser is a helper method to define mock.On call

  • context1 context.Context
  • s string
  • repositoryListByUserOptions *github.RepositoryListByUserOptions

type Repositories_Get_Call

type Repositories_Get_Call struct {
	*mock.Call
}

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

func (*Repositories_Get_Call) Return

func (_c *Repositories_Get_Call) Return(repository *github.Repository, response *github.Response, err error) *Repositories_Get_Call

func (*Repositories_Get_Call) Run

func (_c *Repositories_Get_Call) Run(run func(context1 context.Context, s string, s1 string)) *Repositories_Get_Call

func (*Repositories_Get_Call) RunAndReturn

func (_c *Repositories_Get_Call) RunAndReturn(run func(context1 context.Context, s string, s1 string) (*github.Repository, *github.Response, error)) *Repositories_Get_Call

type Repositories_ListByUser_Call

type Repositories_ListByUser_Call struct {
	*mock.Call
}

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

func (*Repositories_ListByUser_Call) Return

func (*Repositories_ListByUser_Call) Run

func (_c *Repositories_ListByUser_Call) Run(run func(context1 context.Context, s string, repositoryListByUserOptions *github.RepositoryListByUserOptions)) *Repositories_ListByUser_Call

func (*Repositories_ListByUser_Call) RunAndReturn

func (_c *Repositories_ListByUser_Call) RunAndReturn(run func(context1 context.Context, s string, repositoryListByUserOptions *github.RepositoryListByUserOptions) ([]*github.Repository, *github.Response, error)) *Repositories_ListByUser_Call

Jump to

Keyboard shortcuts

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