mockclient

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2025 License: AGPL-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 MockrepositoryService

type MockrepositoryService struct {
	mock.Mock
}

MockrepositoryService is an autogenerated mock type for the repositoryService type

func NewMockrepositoryService

func NewMockrepositoryService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockrepositoryService

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

func (*MockrepositoryService) GetCommit

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

func (*MockrepositoryService) GetContents

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

type MockrepositoryService_Expecter

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

func (*MockrepositoryService_Expecter) GetCommit

func (_e *MockrepositoryService_Expecter) GetCommit(ctx interface{}, owner interface{}, repo interface{}, ref interface{}, opts interface{}) *MockrepositoryService_GetCommit_Call

GetCommit is a helper method to define mock.On call

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

func (*MockrepositoryService_Expecter) GetContents

func (_e *MockrepositoryService_Expecter) GetContents(ctx interface{}, owner interface{}, repo interface{}, path interface{}, opts interface{}) *MockrepositoryService_GetContents_Call

GetContents is a helper method to define mock.On call

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

type MockrepositoryService_GetCommit_Call

type MockrepositoryService_GetCommit_Call struct {
	*mock.Call
}

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

func (*MockrepositoryService_GetCommit_Call) Return

func (*MockrepositoryService_GetCommit_Call) Run

type MockrepositoryService_GetContents_Call

type MockrepositoryService_GetContents_Call struct {
	*mock.Call
}

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

func (*MockrepositoryService_GetContents_Call) Return

func (*MockrepositoryService_GetContents_Call) Run

Jump to

Keyboard shortcuts

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