Documentation
¶
Overview ¶
Package mocks provides generated repository metadata generation test doubles.
Index ¶
- type MockGenerator
- type MockGenerator_Expecter
- type MockGenerator_Generate_Call
- func (_c *MockGenerator_Generate_Call) Return(err error) *MockGenerator_Generate_Call
- func (_c *MockGenerator_Generate_Call) Run(run func(ctx context.Context, request pkgrepo.GenerateRequest)) *MockGenerator_Generate_Call
- func (_c *MockGenerator_Generate_Call) RunAndReturn(run func(ctx context.Context, request pkgrepo.GenerateRequest) error) *MockGenerator_Generate_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockGenerator ¶
MockGenerator is an autogenerated mock type for the Generator type
func NewMockGenerator ¶
func NewMockGenerator(t interface {
mock.TestingT
Cleanup(func())
}) *MockGenerator
NewMockGenerator creates a new instance of MockGenerator. 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 (*MockGenerator) EXPECT ¶
func (_m *MockGenerator) EXPECT() *MockGenerator_Expecter
func (*MockGenerator) Generate ¶
func (_mock *MockGenerator) Generate(ctx context.Context, request pkgrepo.GenerateRequest) error
Generate provides a mock function for the type MockGenerator
type MockGenerator_Expecter ¶
type MockGenerator_Expecter struct {
// contains filtered or unexported fields
}
func (*MockGenerator_Expecter) Generate ¶
func (_e *MockGenerator_Expecter) Generate(ctx any, request any) *MockGenerator_Generate_Call
Generate is a helper method to define mock.On call
- ctx context.Context
- request pkgrepo.GenerateRequest
type MockGenerator_Generate_Call ¶
MockGenerator_Generate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Generate'
func (*MockGenerator_Generate_Call) Return ¶
func (_c *MockGenerator_Generate_Call) Return(err error) *MockGenerator_Generate_Call
func (*MockGenerator_Generate_Call) Run ¶
func (_c *MockGenerator_Generate_Call) Run(run func(ctx context.Context, request pkgrepo.GenerateRequest)) *MockGenerator_Generate_Call
func (*MockGenerator_Generate_Call) RunAndReturn ¶
func (_c *MockGenerator_Generate_Call) RunAndReturn(run func(ctx context.Context, request pkgrepo.GenerateRequest) error) *MockGenerator_Generate_Call
Click to show internal directories.
Click to hide internal directories.