Documentation
¶
Overview ¶
Package mocks provides generated CLI composition test doubles.
Index ¶
- type MockPackageRepositoryPublisher
- type MockPackageRepositoryPublisher_Expecter
- type MockPackageRepositoryPublisher_Publish_Call
- func (_c *MockPackageRepositoryPublisher_Publish_Call) Return(publishResult pkgrepo.PublishResult, err error) *MockPackageRepositoryPublisher_Publish_Call
- func (_c *MockPackageRepositoryPublisher_Publish_Call) Run(run func(ctx context.Context, input pkgrepo.PublishInput)) *MockPackageRepositoryPublisher_Publish_Call
- func (_c *MockPackageRepositoryPublisher_Publish_Call) RunAndReturn(...) *MockPackageRepositoryPublisher_Publish_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockPackageRepositoryPublisher ¶
MockPackageRepositoryPublisher is an autogenerated mock type for the PackageRepositoryPublisher type
func NewMockPackageRepositoryPublisher ¶
func NewMockPackageRepositoryPublisher(t interface {
mock.TestingT
Cleanup(func())
}) *MockPackageRepositoryPublisher
NewMockPackageRepositoryPublisher creates a new instance of MockPackageRepositoryPublisher. 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 (*MockPackageRepositoryPublisher) EXPECT ¶
func (_m *MockPackageRepositoryPublisher) EXPECT() *MockPackageRepositoryPublisher_Expecter
func (*MockPackageRepositoryPublisher) Publish ¶
func (_mock *MockPackageRepositoryPublisher) Publish(ctx context.Context, input pkgrepo.PublishInput) (pkgrepo.PublishResult, error)
Publish provides a mock function for the type MockPackageRepositoryPublisher
type MockPackageRepositoryPublisher_Expecter ¶
type MockPackageRepositoryPublisher_Expecter struct {
// contains filtered or unexported fields
}
func (*MockPackageRepositoryPublisher_Expecter) Publish ¶
func (_e *MockPackageRepositoryPublisher_Expecter) Publish(ctx any, input any) *MockPackageRepositoryPublisher_Publish_Call
Publish is a helper method to define mock.On call
- ctx context.Context
- input pkgrepo.PublishInput
type MockPackageRepositoryPublisher_Publish_Call ¶
MockPackageRepositoryPublisher_Publish_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Publish'
func (*MockPackageRepositoryPublisher_Publish_Call) Return ¶
func (_c *MockPackageRepositoryPublisher_Publish_Call) Return(publishResult pkgrepo.PublishResult, err error) *MockPackageRepositoryPublisher_Publish_Call
func (*MockPackageRepositoryPublisher_Publish_Call) Run ¶
func (_c *MockPackageRepositoryPublisher_Publish_Call) Run(run func(ctx context.Context, input pkgrepo.PublishInput)) *MockPackageRepositoryPublisher_Publish_Call
func (*MockPackageRepositoryPublisher_Publish_Call) RunAndReturn ¶
func (_c *MockPackageRepositoryPublisher_Publish_Call) RunAndReturn(run func(ctx context.Context, input pkgrepo.PublishInput) (pkgrepo.PublishResult, error)) *MockPackageRepositoryPublisher_Publish_Call