github_mocks

package
v0.4.3-final-apache Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient

func NewClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *Client

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

func (_m *Client) EXPECT() *Client_Expecter

func (*Client) Gists

func (_m *Client) Gists() github.GistClient

Gists provides a mock function with no fields

func (*Client) Issues

func (_m *Client) Issues() github.IssuesClient

Issues provides a mock function with no fields

type Client_Expecter

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

func (*Client_Expecter) Gists

func (_e *Client_Expecter) Gists() *Client_Gists_Call

Gists is a helper method to define mock.On call

func (*Client_Expecter) Issues

func (_e *Client_Expecter) Issues() *Client_Issues_Call

Issues is a helper method to define mock.On call

type Client_Gists_Call

type Client_Gists_Call struct {
	*mock.Call
}

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

func (*Client_Gists_Call) Return

func (*Client_Gists_Call) Run

func (_c *Client_Gists_Call) Run(run func()) *Client_Gists_Call

func (*Client_Gists_Call) RunAndReturn

func (_c *Client_Gists_Call) RunAndReturn(run func() github.GistClient) *Client_Gists_Call

type Client_Issues_Call

type Client_Issues_Call struct {
	*mock.Call
}

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

func (*Client_Issues_Call) Return

func (*Client_Issues_Call) Run

func (_c *Client_Issues_Call) Run(run func()) *Client_Issues_Call

func (*Client_Issues_Call) RunAndReturn

func (_c *Client_Issues_Call) RunAndReturn(run func() github.IssuesClient) *Client_Issues_Call

type GistClient

type GistClient struct {
	mock.Mock
}

GistClient is an autogenerated mock type for the GistClient type

func NewGistClient

func NewGistClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *GistClient

NewGistClient creates a new instance of GistClient. 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 (*GistClient) Create

func (_m *GistClient) Create(ctx context.Context, gist *github.Gist) (*github.Gist, *github.Response, error)

Create provides a mock function with given fields: ctx, gist

func (*GistClient) EXPECT

func (_m *GistClient) EXPECT() *GistClient_Expecter

func (*GistClient) Edit

func (_m *GistClient) Edit(ctx context.Context, id string, gist *github.Gist) (*github.Gist, *github.Response, error)

Edit provides a mock function with given fields: ctx, id, gist

func (*GistClient) Get

func (_m *GistClient) Get(ctx context.Context, id string) (*github.Gist, *github.Response, error)

Get provides a mock function with given fields: ctx, id

type GistClient_Create_Call

type GistClient_Create_Call struct {
	*mock.Call
}

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

func (*GistClient_Create_Call) Return

func (*GistClient_Create_Call) Run

func (*GistClient_Create_Call) RunAndReturn

type GistClient_Edit_Call

type GistClient_Edit_Call struct {
	*mock.Call
}

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

func (*GistClient_Edit_Call) Return

func (*GistClient_Edit_Call) Run

func (_c *GistClient_Edit_Call) Run(run func(ctx context.Context, id string, gist *github.Gist)) *GistClient_Edit_Call

func (*GistClient_Edit_Call) RunAndReturn

type GistClient_Expecter

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

func (*GistClient_Expecter) Create

func (_e *GistClient_Expecter) Create(ctx interface{}, gist interface{}) *GistClient_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • gist *github.Gist

func (*GistClient_Expecter) Edit

func (_e *GistClient_Expecter) Edit(ctx interface{}, id interface{}, gist interface{}) *GistClient_Edit_Call

Edit is a helper method to define mock.On call

  • ctx context.Context
  • id string
  • gist *github.Gist

func (*GistClient_Expecter) Get

func (_e *GistClient_Expecter) Get(ctx interface{}, id interface{}) *GistClient_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • id string

type GistClient_Get_Call

type GistClient_Get_Call struct {
	*mock.Call
}

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

func (*GistClient_Get_Call) Return

func (*GistClient_Get_Call) Run

func (_c *GistClient_Get_Call) Run(run func(ctx context.Context, id string)) *GistClient_Get_Call

func (*GistClient_Get_Call) RunAndReturn

type IssuesClient

type IssuesClient struct {
	mock.Mock
}

IssuesClient is an autogenerated mock type for the IssuesClient type

func NewIssuesClient

func NewIssuesClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *IssuesClient

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

func (_m *IssuesClient) EXPECT() *IssuesClient_Expecter

func (*IssuesClient) ListByRepo

func (_m *IssuesClient) ListByRepo(ctx context.Context, owner string, repo string, opts *github.IssueListByRepoOptions) ([]*github.Issue, *github.Response, error)

ListByRepo provides a mock function with given fields: ctx, owner, repo, opts

type IssuesClient_Expecter

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

func (*IssuesClient_Expecter) ListByRepo

func (_e *IssuesClient_Expecter) ListByRepo(ctx interface{}, owner interface{}, repo interface{}, opts interface{}) *IssuesClient_ListByRepo_Call

ListByRepo is a helper method to define mock.On call

  • ctx context.Context
  • owner string
  • repo string
  • opts *github.IssueListByRepoOptions

type IssuesClient_ListByRepo_Call

type IssuesClient_ListByRepo_Call struct {
	*mock.Call
}

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

func (*IssuesClient_ListByRepo_Call) Return

func (*IssuesClient_ListByRepo_Call) Run

Jump to

Keyboard shortcuts

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