Documentation
¶
Overview ¶
Package mocks contains Mockery-generated doubles for pubgh.AssetReplacer.
Generated files are produced by `mockery` from .mockery.yml. Do not edit them by hand.
Index ¶
- type MockAssetReplacer
- type MockAssetReplacer_Expecter
- type MockAssetReplacer_Replace_Call
- func (_c *MockAssetReplacer_Replace_Call) Return(err error) *MockAssetReplacer_Replace_Call
- func (_c *MockAssetReplacer_Replace_Call) Run(run func(ctx context.Context, repository pubgh.Repository, tag rel.Tag, ...)) *MockAssetReplacer_Replace_Call
- func (_c *MockAssetReplacer_Replace_Call) RunAndReturn(...) *MockAssetReplacer_Replace_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAssetReplacer ¶
MockAssetReplacer is an autogenerated mock type for the AssetReplacer type
func NewMockAssetReplacer ¶
func NewMockAssetReplacer(t interface {
mock.TestingT
Cleanup(func())
}) *MockAssetReplacer
NewMockAssetReplacer creates a new instance of MockAssetReplacer. 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 (*MockAssetReplacer) EXPECT ¶
func (_m *MockAssetReplacer) EXPECT() *MockAssetReplacer_Expecter
type MockAssetReplacer_Expecter ¶
type MockAssetReplacer_Expecter struct {
// contains filtered or unexported fields
}
func (*MockAssetReplacer_Expecter) Replace ¶
func (_e *MockAssetReplacer_Expecter) Replace(ctx any, repository any, tag any, expected any) *MockAssetReplacer_Replace_Call
Replace is a helper method to define mock.On call
- ctx context.Context
- repository pubgh.Repository
- tag rel.Tag
- expected []pubgh.AssetPath
type MockAssetReplacer_Replace_Call ¶
MockAssetReplacer_Replace_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Replace'
func (*MockAssetReplacer_Replace_Call) Return ¶
func (_c *MockAssetReplacer_Replace_Call) Return(err error) *MockAssetReplacer_Replace_Call
func (*MockAssetReplacer_Replace_Call) Run ¶
func (_c *MockAssetReplacer_Replace_Call) Run(run func(ctx context.Context, repository pubgh.Repository, tag rel.Tag, expected []pubgh.AssetPath)) *MockAssetReplacer_Replace_Call
func (*MockAssetReplacer_Replace_Call) RunAndReturn ¶
func (_c *MockAssetReplacer_Replace_Call) RunAndReturn(run func(ctx context.Context, repository pubgh.Repository, tag rel.Tag, expected []pubgh.AssetPath) error) *MockAssetReplacer_Replace_Call