mocks

package
v0.0.0-...-cb886e6 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GHOAuthClient

type GHOAuthClient struct {
	mock.Mock
}

GHOAuthClient is an autogenerated mock type for the GHOAuthClient type

func NewGHOAuthClient

func NewGHOAuthClient(t mockConstructorTestingTNewGHOAuthClient) *GHOAuthClient

NewGHOAuthClient creates a new instance of GHOAuthClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*GHOAuthClient) EXPECT

func (_m *GHOAuthClient) EXPECT() *GHOAuthClient_Expecter

func (*GHOAuthClient) GetUser

func (_m *GHOAuthClient) GetUser(ctx context.Context) (*github.User, *github.Response, error)

GetUser provides a mock function with given fields: ctx

func (*GHOAuthClient) ListOrganizations

func (_m *GHOAuthClient) ListOrganizations(ctx context.Context) ([]*github.Organization, *github.Response, error)

ListOrganizations provides a mock function with given fields: ctx

func (*GHOAuthClient) ListOwnerRepos

func (_m *GHOAuthClient) ListOwnerRepos(ctx context.Context, owner string) ([]*github.Repository, error)

ListOwnerRepos provides a mock function with given fields: ctx, owner

type GHOAuthClient_Expecter

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

func (*GHOAuthClient_Expecter) GetUser

func (_e *GHOAuthClient_Expecter) GetUser(ctx interface{}) *GHOAuthClient_GetUser_Call

GetUser is a helper method to define mock.On call

  • ctx context.Context

func (*GHOAuthClient_Expecter) ListOrganizations

func (_e *GHOAuthClient_Expecter) ListOrganizations(ctx interface{}) *GHOAuthClient_ListOrganizations_Call

ListOrganizations is a helper method to define mock.On call

  • ctx context.Context

func (*GHOAuthClient_Expecter) ListOwnerRepos

func (_e *GHOAuthClient_Expecter) ListOwnerRepos(ctx interface{}, owner interface{}) *GHOAuthClient_ListOwnerRepos_Call

ListOwnerRepos is a helper method to define mock.On call

  • ctx context.Context
  • owner string

type GHOAuthClient_GetUser_Call

type GHOAuthClient_GetUser_Call struct {
	*mock.Call
}

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

func (*GHOAuthClient_GetUser_Call) Return

func (*GHOAuthClient_GetUser_Call) Run

func (*GHOAuthClient_GetUser_Call) RunAndReturn

type GHOAuthClient_ListOrganizations_Call

type GHOAuthClient_ListOrganizations_Call struct {
	*mock.Call
}

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

func (*GHOAuthClient_ListOrganizations_Call) Return

func (*GHOAuthClient_ListOrganizations_Call) Run

func (*GHOAuthClient_ListOrganizations_Call) RunAndReturn

type GHOAuthClient_ListOwnerRepos_Call

type GHOAuthClient_ListOwnerRepos_Call struct {
	*mock.Call
}

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

func (*GHOAuthClient_ListOwnerRepos_Call) Return

func (*GHOAuthClient_ListOwnerRepos_Call) Run

func (*GHOAuthClient_ListOwnerRepos_Call) RunAndReturn

Jump to

Keyboard shortcuts

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