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

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

type PullRequests_Expecter

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

func (*PullRequests_Expecter) List

func (_e *PullRequests_Expecter) List(_a0 interface{}, _a1 interface{}, _a2 interface{}, _a3 interface{}) *PullRequests_List_Call

List is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string
  • _a2 string
  • _a3 *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 (*PullRequests_List_Call) Run

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

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

func (*Repositories) ListByUser

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

type Repositories_Expecter

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

func (*Repositories_Expecter) Get

func (_e *Repositories_Expecter) Get(_a0 interface{}, _a1 interface{}, _a2 interface{}) *Repositories_Get_Call

Get is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string
  • _a2 string

func (*Repositories_Expecter) ListByUser

func (_e *Repositories_Expecter) ListByUser(_a0 interface{}, _a1 interface{}, _a2 interface{}) *Repositories_ListByUser_Call

ListByUser is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string
  • _a2 *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 (*Repositories_Get_Call) Run

func (_c *Repositories_Get_Call) Run(run func(_a0 context.Context, _a1 string, _a2 string)) *Repositories_Get_Call

func (*Repositories_Get_Call) RunAndReturn

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

Jump to

Keyboard shortcuts

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