fake

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package fake is a generated GoMock package.

Index

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

func (m *MockService) CreatePackage(arg0 context.Context, arg1 *datatypes.Package) error

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

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

type MockServiceCreatePackageCall struct {
	*gomock.Call
}

MockServiceCreatePackageCall wrap *gomock.Call

func (*MockServiceCreatePackageCall) Do

Do rewrite *gomock.Call.Do

func (*MockServiceCreatePackageCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockServiceCreatePackageCall) Return

Return rewrite *gomock.Call.Return

type MockServiceCreatePreservationActionCall

type MockServiceCreatePreservationActionCall struct {
	*gomock.Call
}

MockServiceCreatePreservationActionCall wrap *gomock.Call

func (*MockServiceCreatePreservationActionCall) Do

Do rewrite *gomock.Call.Do

func (*MockServiceCreatePreservationActionCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockServiceCreatePreservationActionCall) Return

Return rewrite *gomock.Call.Return

type MockServiceCreatePreservationTaskCall

type MockServiceCreatePreservationTaskCall struct {
	*gomock.Call
}

MockServiceCreatePreservationTaskCall wrap *gomock.Call

func (*MockServiceCreatePreservationTaskCall) Do

Do rewrite *gomock.Call.Do

func (*MockServiceCreatePreservationTaskCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockServiceCreatePreservationTaskCall) Return

Return rewrite *gomock.Call.Return

type MockServiceListPackagesCall

type MockServiceListPackagesCall struct {
	*gomock.Call
}

MockServiceListPackagesCall wrap *gomock.Call

func (*MockServiceListPackagesCall) Do

Do rewrite *gomock.Call.Do

func (*MockServiceListPackagesCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockServiceListPackagesCall) Return

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

type MockServiceUpdatePackageCall struct {
	*gomock.Call
}

MockServiceUpdatePackageCall wrap *gomock.Call

func (*MockServiceUpdatePackageCall) Do

Do rewrite *gomock.Call.Do

func (*MockServiceUpdatePackageCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockServiceUpdatePackageCall) Return

Return rewrite *gomock.Call.Return

type MockServiceUpdatePreservationTaskCall

type MockServiceUpdatePreservationTaskCall struct {
	*gomock.Call
}

MockServiceUpdatePreservationTaskCall wrap *gomock.Call

func (*MockServiceUpdatePreservationTaskCall) Do

Do rewrite *gomock.Call.Do

func (*MockServiceUpdatePreservationTaskCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockServiceUpdatePreservationTaskCall) Return

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

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