mock_github

package
v0.26.1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: Apache-2.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 Repository

type Repository struct {
	mock.Mock
}

Repository is an autogenerated mock type for the Repository type

func NewRepository

func NewRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *Repository

NewRepository creates a new instance of Repository. 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 (*Repository) CompareCommits

func (_m *Repository) CompareCommits(ctx context.Context, owner string, repo string, base string, head string, opts *github.ListOptions) (*github.CommitsComparison, *github.Response, error)

CompareCommits provides a mock function with given fields: ctx, owner, repo, base, head, opts

func (*Repository) EXPECT added in v0.21.7

func (_m *Repository) EXPECT() *Repository_Expecter

func (*Repository) GetCommit added in v0.21.7

func (_m *Repository) GetCommit(ctx context.Context, owner string, repo string, sha string, opts *github.ListOptions) (*github.RepositoryCommit, *github.Response, error)

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

func (*Repository) GetContents

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

func (*Repository) ListCommits added in v0.21.7

func (_m *Repository) ListCommits(ctx context.Context, owner string, repo string, opts *github.CommitsListOptions) ([]*github.RepositoryCommit, *github.Response, error)

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

type Repository_CompareCommits_Call added in v0.21.7

type Repository_CompareCommits_Call struct {
	*mock.Call
}

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

func (*Repository_CompareCommits_Call) Return added in v0.21.7

func (*Repository_CompareCommits_Call) Run added in v0.21.7

func (*Repository_CompareCommits_Call) RunAndReturn added in v0.21.7

type Repository_Expecter added in v0.21.7

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

func (*Repository_Expecter) CompareCommits added in v0.21.7

func (_e *Repository_Expecter) CompareCommits(ctx interface{}, owner interface{}, repo interface{}, base interface{}, head interface{}, opts interface{}) *Repository_CompareCommits_Call

CompareCommits is a helper method to define mock.On call

  • ctx context.Context
  • owner string
  • repo string
  • base string
  • head string
  • opts *github.ListOptions

func (*Repository_Expecter) GetCommit added in v0.21.7

func (_e *Repository_Expecter) GetCommit(ctx interface{}, owner interface{}, repo interface{}, sha interface{}, opts interface{}) *Repository_GetCommit_Call

GetCommit is a helper method to define mock.On call

  • ctx context.Context
  • owner string
  • repo string
  • sha string
  • opts *github.ListOptions

func (*Repository_Expecter) GetContents added in v0.21.7

func (_e *Repository_Expecter) GetContents(ctx interface{}, owner interface{}, repo interface{}, path interface{}, opts interface{}) *Repository_GetContents_Call

GetContents is a helper method to define mock.On call

  • ctx context.Context
  • owner string
  • repo string
  • path string
  • opts *github.RepositoryContentGetOptions

func (*Repository_Expecter) ListCommits added in v0.21.7

func (_e *Repository_Expecter) ListCommits(ctx interface{}, owner interface{}, repo interface{}, opts interface{}) *Repository_ListCommits_Call

ListCommits is a helper method to define mock.On call

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

type Repository_GetCommit_Call added in v0.21.7

type Repository_GetCommit_Call struct {
	*mock.Call
}

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

func (*Repository_GetCommit_Call) Return added in v0.21.7

func (*Repository_GetCommit_Call) Run added in v0.21.7

func (_c *Repository_GetCommit_Call) Run(run func(ctx context.Context, owner string, repo string, sha string, opts *github.ListOptions)) *Repository_GetCommit_Call

func (*Repository_GetCommit_Call) RunAndReturn added in v0.21.7

type Repository_GetContents_Call added in v0.21.7

type Repository_GetContents_Call struct {
	*mock.Call
}

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

func (*Repository_GetContents_Call) Return added in v0.21.7

func (*Repository_GetContents_Call) Run added in v0.21.7

type Repository_ListCommits_Call added in v0.21.7

type Repository_ListCommits_Call struct {
	*mock.Call
}

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

func (*Repository_ListCommits_Call) Return added in v0.21.7

func (*Repository_ListCommits_Call) Run added in v0.21.7

func (*Repository_ListCommits_Call) RunAndReturn added in v0.21.7

Jump to

Keyboard shortcuts

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