Documentation ¶
Overview ¶
Package fake is a generated GoMock package.
Index ¶
- type MockService
- func (m *MockService) CreatePackage(arg0 context.Context, arg1 *datatypes.Package) error
- func (m *MockService) CreatePreservationAction(arg0 context.Context, arg1 *datatypes.PreservationAction) error
- func (m *MockService) CreatePreservationTask(arg0 context.Context, arg1 *datatypes.PreservationTask) error
- func (m *MockService) EXPECT() *MockServiceMockRecorder
- func (m *MockService) ListPackages(arg0 context.Context, arg1 *persistence.PackageFilter) ([]*datatypes.Package, *persistence.Page, error)
- func (m *MockService) UpdatePackage(arg0 context.Context, arg1 int, arg2 persistence.PackageUpdater) (*datatypes.Package, error)
- func (m *MockService) UpdatePreservationTask(arg0 context.Context, arg1 int, arg2 persistence.PresTaskUpdater) (*datatypes.PreservationTask, error)
- type MockServiceCreatePackageCall
- func (c *MockServiceCreatePackageCall) Do(f func(context.Context, *datatypes.Package) error) *MockServiceCreatePackageCall
- func (c *MockServiceCreatePackageCall) DoAndReturn(f func(context.Context, *datatypes.Package) error) *MockServiceCreatePackageCall
- func (c *MockServiceCreatePackageCall) Return(arg0 error) *MockServiceCreatePackageCall
- type MockServiceCreatePreservationActionCall
- func (c *MockServiceCreatePreservationActionCall) Do(f func(context.Context, *datatypes.PreservationAction) error) *MockServiceCreatePreservationActionCall
- func (c *MockServiceCreatePreservationActionCall) DoAndReturn(f func(context.Context, *datatypes.PreservationAction) error) *MockServiceCreatePreservationActionCall
- func (c *MockServiceCreatePreservationActionCall) Return(arg0 error) *MockServiceCreatePreservationActionCall
- type MockServiceCreatePreservationTaskCall
- func (c *MockServiceCreatePreservationTaskCall) Do(f func(context.Context, *datatypes.PreservationTask) error) *MockServiceCreatePreservationTaskCall
- func (c *MockServiceCreatePreservationTaskCall) DoAndReturn(f func(context.Context, *datatypes.PreservationTask) error) *MockServiceCreatePreservationTaskCall
- func (c *MockServiceCreatePreservationTaskCall) Return(arg0 error) *MockServiceCreatePreservationTaskCall
- type MockServiceListPackagesCall
- type MockServiceMockRecorder
- func (mr *MockServiceMockRecorder) CreatePackage(arg0, arg1 any) *MockServiceCreatePackageCall
- func (mr *MockServiceMockRecorder) CreatePreservationAction(arg0, arg1 any) *MockServiceCreatePreservationActionCall
- func (mr *MockServiceMockRecorder) CreatePreservationTask(arg0, arg1 any) *MockServiceCreatePreservationTaskCall
- func (mr *MockServiceMockRecorder) ListPackages(arg0, arg1 any) *MockServiceListPackagesCall
- func (mr *MockServiceMockRecorder) UpdatePackage(arg0, arg1, arg2 any) *MockServiceUpdatePackageCall
- func (mr *MockServiceMockRecorder) UpdatePreservationTask(arg0, arg1, arg2 any) *MockServiceUpdatePreservationTaskCall
- type MockServiceUpdatePackageCall
- type MockServiceUpdatePreservationTaskCall
- func (c *MockServiceUpdatePreservationTaskCall) Do(...) *MockServiceUpdatePreservationTaskCall
- func (c *MockServiceUpdatePreservationTaskCall) DoAndReturn(...) *MockServiceUpdatePreservationTaskCall
- func (c *MockServiceUpdatePreservationTaskCall) Return(arg0 *datatypes.PreservationTask, arg1 error) *MockServiceUpdatePreservationTaskCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockService ¶
type MockService struct {
// contains filtered or unexported fields
}
MockService is a mock of Service interface.
func NewMockService ¶
func NewMockService(ctrl *gomock.Controller) *MockService
NewMockService creates a new mock instance.
func (*MockService) CreatePackage ¶
CreatePackage mocks base method.
func (*MockService) CreatePreservationAction ¶
func (m *MockService) CreatePreservationAction(arg0 context.Context, arg1 *datatypes.PreservationAction) error
CreatePreservationAction mocks base method.
func (*MockService) CreatePreservationTask ¶
func (m *MockService) CreatePreservationTask(arg0 context.Context, arg1 *datatypes.PreservationTask) error
CreatePreservationTask mocks base method.
func (*MockService) EXPECT ¶
func (m *MockService) EXPECT() *MockServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockService) ListPackages ¶
func (m *MockService) ListPackages(arg0 context.Context, arg1 *persistence.PackageFilter) ([]*datatypes.Package, *persistence.Page, error)
ListPackages mocks base method.
func (*MockService) UpdatePackage ¶
func (m *MockService) UpdatePackage(arg0 context.Context, arg1 int, arg2 persistence.PackageUpdater) (*datatypes.Package, error)
UpdatePackage mocks base method.
func (*MockService) UpdatePreservationTask ¶
func (m *MockService) UpdatePreservationTask(arg0 context.Context, arg1 int, arg2 persistence.PresTaskUpdater) (*datatypes.PreservationTask, error)
UpdatePreservationTask mocks base method.
type MockServiceCreatePackageCall ¶
MockServiceCreatePackageCall wrap *gomock.Call
func (*MockServiceCreatePackageCall) Do ¶
func (c *MockServiceCreatePackageCall) Do(f func(context.Context, *datatypes.Package) error) *MockServiceCreatePackageCall
Do rewrite *gomock.Call.Do
func (*MockServiceCreatePackageCall) DoAndReturn ¶
func (c *MockServiceCreatePackageCall) DoAndReturn(f func(context.Context, *datatypes.Package) error) *MockServiceCreatePackageCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockServiceCreatePackageCall) Return ¶
func (c *MockServiceCreatePackageCall) Return(arg0 error) *MockServiceCreatePackageCall
Return rewrite *gomock.Call.Return
type MockServiceCreatePreservationActionCall ¶
MockServiceCreatePreservationActionCall wrap *gomock.Call
func (*MockServiceCreatePreservationActionCall) Do ¶
func (c *MockServiceCreatePreservationActionCall) Do(f func(context.Context, *datatypes.PreservationAction) error) *MockServiceCreatePreservationActionCall
Do rewrite *gomock.Call.Do
func (*MockServiceCreatePreservationActionCall) DoAndReturn ¶
func (c *MockServiceCreatePreservationActionCall) DoAndReturn(f func(context.Context, *datatypes.PreservationAction) error) *MockServiceCreatePreservationActionCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockServiceCreatePreservationActionCall) Return ¶
func (c *MockServiceCreatePreservationActionCall) Return(arg0 error) *MockServiceCreatePreservationActionCall
Return rewrite *gomock.Call.Return
type MockServiceCreatePreservationTaskCall ¶
MockServiceCreatePreservationTaskCall wrap *gomock.Call
func (*MockServiceCreatePreservationTaskCall) Do ¶
func (c *MockServiceCreatePreservationTaskCall) Do(f func(context.Context, *datatypes.PreservationTask) error) *MockServiceCreatePreservationTaskCall
Do rewrite *gomock.Call.Do
func (*MockServiceCreatePreservationTaskCall) DoAndReturn ¶
func (c *MockServiceCreatePreservationTaskCall) DoAndReturn(f func(context.Context, *datatypes.PreservationTask) error) *MockServiceCreatePreservationTaskCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockServiceCreatePreservationTaskCall) Return ¶
func (c *MockServiceCreatePreservationTaskCall) Return(arg0 error) *MockServiceCreatePreservationTaskCall
Return rewrite *gomock.Call.Return
type MockServiceListPackagesCall ¶
MockServiceListPackagesCall wrap *gomock.Call
func (*MockServiceListPackagesCall) Do ¶
func (c *MockServiceListPackagesCall) Do(f func(context.Context, *persistence.PackageFilter) ([]*datatypes.Package, *persistence.Page, error)) *MockServiceListPackagesCall
Do rewrite *gomock.Call.Do
func (*MockServiceListPackagesCall) DoAndReturn ¶
func (c *MockServiceListPackagesCall) DoAndReturn(f func(context.Context, *persistence.PackageFilter) ([]*datatypes.Package, *persistence.Page, error)) *MockServiceListPackagesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockServiceListPackagesCall) Return ¶
func (c *MockServiceListPackagesCall) Return(arg0 []*datatypes.Package, arg1 *persistence.Page, arg2 error) *MockServiceListPackagesCall
Return rewrite *gomock.Call.Return
type MockServiceMockRecorder ¶
type MockServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockServiceMockRecorder is the mock recorder for MockService.
func (*MockServiceMockRecorder) CreatePackage ¶
func (mr *MockServiceMockRecorder) CreatePackage(arg0, arg1 any) *MockServiceCreatePackageCall
CreatePackage indicates an expected call of CreatePackage.
func (*MockServiceMockRecorder) CreatePreservationAction ¶
func (mr *MockServiceMockRecorder) CreatePreservationAction(arg0, arg1 any) *MockServiceCreatePreservationActionCall
CreatePreservationAction indicates an expected call of CreatePreservationAction.
func (*MockServiceMockRecorder) CreatePreservationTask ¶
func (mr *MockServiceMockRecorder) CreatePreservationTask(arg0, arg1 any) *MockServiceCreatePreservationTaskCall
CreatePreservationTask indicates an expected call of CreatePreservationTask.
func (*MockServiceMockRecorder) ListPackages ¶
func (mr *MockServiceMockRecorder) ListPackages(arg0, arg1 any) *MockServiceListPackagesCall
ListPackages indicates an expected call of ListPackages.
func (*MockServiceMockRecorder) UpdatePackage ¶
func (mr *MockServiceMockRecorder) UpdatePackage(arg0, arg1, arg2 any) *MockServiceUpdatePackageCall
UpdatePackage indicates an expected call of UpdatePackage.
func (*MockServiceMockRecorder) UpdatePreservationTask ¶
func (mr *MockServiceMockRecorder) UpdatePreservationTask(arg0, arg1, arg2 any) *MockServiceUpdatePreservationTaskCall
UpdatePreservationTask indicates an expected call of UpdatePreservationTask.
type MockServiceUpdatePackageCall ¶
MockServiceUpdatePackageCall wrap *gomock.Call
func (*MockServiceUpdatePackageCall) Do ¶
func (c *MockServiceUpdatePackageCall) Do(f func(context.Context, int, persistence.PackageUpdater) (*datatypes.Package, error)) *MockServiceUpdatePackageCall
Do rewrite *gomock.Call.Do
func (*MockServiceUpdatePackageCall) DoAndReturn ¶
func (c *MockServiceUpdatePackageCall) DoAndReturn(f func(context.Context, int, persistence.PackageUpdater) (*datatypes.Package, error)) *MockServiceUpdatePackageCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockServiceUpdatePackageCall) Return ¶
func (c *MockServiceUpdatePackageCall) Return(arg0 *datatypes.Package, arg1 error) *MockServiceUpdatePackageCall
Return rewrite *gomock.Call.Return
type MockServiceUpdatePreservationTaskCall ¶
MockServiceUpdatePreservationTaskCall wrap *gomock.Call
func (*MockServiceUpdatePreservationTaskCall) Do ¶
func (c *MockServiceUpdatePreservationTaskCall) Do(f func(context.Context, int, persistence.PresTaskUpdater) (*datatypes.PreservationTask, error)) *MockServiceUpdatePreservationTaskCall
Do rewrite *gomock.Call.Do
func (*MockServiceUpdatePreservationTaskCall) DoAndReturn ¶
func (c *MockServiceUpdatePreservationTaskCall) DoAndReturn(f func(context.Context, int, persistence.PresTaskUpdater) (*datatypes.PreservationTask, error)) *MockServiceUpdatePreservationTaskCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockServiceUpdatePreservationTaskCall) Return ¶
func (c *MockServiceUpdatePreservationTaskCall) Return(arg0 *datatypes.PreservationTask, arg1 error) *MockServiceUpdatePreservationTaskCall
Return rewrite *gomock.Call.Return