mocks

package
v0.0.0-...-e28bd7b Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IncomingEventHandlers

type IncomingEventHandlers struct {
	mock.Mock
}

IncomingEventHandlers is an autogenerated mock type for the IncomingEventHandlers type

func NewIncomingEventHandlers

func NewIncomingEventHandlers(t mockConstructorTestingTNewIncomingEventHandlers) *IncomingEventHandlers

NewIncomingEventHandlers creates a new instance of IncomingEventHandlers. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*IncomingEventHandlers) Create

func (_m *IncomingEventHandlers) Create(actor string, emulator string, workspace types.Workspace, transactionID common.TransactionID) error

Create provides a mock function with given fields: actor, emulator, workspace, transactionID

func (*IncomingEventHandlers) Delete

func (_m *IncomingEventHandlers) Delete(actor string, emulator string, workspace types.Workspace, transactionID common.TransactionID) error

Delete provides a mock function with given fields: actor, emulator, workspace, transactionID

func (*IncomingEventHandlers) Update

func (_m *IncomingEventHandlers) Update(actor string, emulator string, workspace types.Workspace, updateFieldNames []string, transactionID common.TransactionID) error

Update provides a mock function with given fields: actor, emulator, workspace, updateFieldNames, transactionID

type IncomingQueryHandlers

type IncomingQueryHandlers struct {
	mock.Mock
}

IncomingQueryHandlers is an autogenerated mock type for the IncomingQueryHandlers type

func NewIncomingQueryHandlers

func NewIncomingQueryHandlers(t mockConstructorTestingTNewIncomingQueryHandlers) *IncomingQueryHandlers

NewIncomingQueryHandlers creates a new instance of IncomingQueryHandlers. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*IncomingQueryHandlers) Get

func (_m *IncomingQueryHandlers) Get(actor string, emulator string, workspaceID common.ID) (types.Workspace, error)

Get provides a mock function with given fields: actor, emulator, workspaceID

func (*IncomingQueryHandlers) List

func (_m *IncomingQueryHandlers) List(actor string, emulator string) ([]types.Workspace, error)

List provides a mock function with given fields: actor, emulator

type OutgoingEventPort

type OutgoingEventPort struct {
	mock.Mock
}

OutgoingEventPort is an autogenerated mock type for the OutgoingEventPort type

func NewOutgoingEventPort

func NewOutgoingEventPort(t mockConstructorTestingTNewOutgoingEventPort) *OutgoingEventPort

NewOutgoingEventPort creates a new instance of OutgoingEventPort. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*OutgoingEventPort) WorkspaceCreateFailedEvent

func (_m *OutgoingEventPort) WorkspaceCreateFailedEvent(_a0 service.WorkspaceModel)

WorkspaceCreateFailedEvent provides a mock function with given fields: _a0

func (*OutgoingEventPort) WorkspaceCreatedEvent

func (_m *OutgoingEventPort) WorkspaceCreatedEvent(_a0 service.WorkspaceModel)

WorkspaceCreatedEvent provides a mock function with given fields: _a0

func (*OutgoingEventPort) WorkspaceDeleteFailedEvent

func (_m *OutgoingEventPort) WorkspaceDeleteFailedEvent(_a0 service.WorkspaceModel)

WorkspaceDeleteFailedEvent provides a mock function with given fields: _a0

func (*OutgoingEventPort) WorkspaceDeletedEvent

func (_m *OutgoingEventPort) WorkspaceDeletedEvent(_a0 service.WorkspaceModel)

WorkspaceDeletedEvent provides a mock function with given fields: _a0

func (*OutgoingEventPort) WorkspaceUpdateFailedEvent

func (_m *OutgoingEventPort) WorkspaceUpdateFailedEvent(_a0 service.WorkspaceModel)

WorkspaceUpdateFailedEvent provides a mock function with given fields: _a0

func (*OutgoingEventPort) WorkspaceUpdatedEvent

func (_m *OutgoingEventPort) WorkspaceUpdatedEvent(_a0 service.WorkspaceModel)

WorkspaceUpdatedEvent provides a mock function with given fields: _a0

type PersistentStoragePort

type PersistentStoragePort struct {
	mock.Mock
}

PersistentStoragePort is an autogenerated mock type for the PersistentStoragePort type

func NewPersistentStoragePort

func NewPersistentStoragePort(t interface {
	mock.TestingT
	Cleanup(func())
}) *PersistentStoragePort

NewPersistentStoragePort creates a new instance of PersistentStoragePort. 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 (*PersistentStoragePort) Create

func (_m *PersistentStoragePort) Create(ctx context.Context, workspace types.Workspace) error

Create provides a mock function with given fields: ctx, workspace

func (*PersistentStoragePort) Delete

func (_m *PersistentStoragePort) Delete(ctx context.Context, user string, workspaceID common.ID) error

Delete provides a mock function with given fields: ctx, user, workspaceID

func (*PersistentStoragePort) Get

func (_m *PersistentStoragePort) Get(ctx context.Context, user string, workspaceID common.ID) (types.Workspace, error)

Get provides a mock function with given fields: ctx, user, workspaceID

func (*PersistentStoragePort) Init

func (_m *PersistentStoragePort) Init(config *types.Config) error

Init provides a mock function with given fields: config

func (*PersistentStoragePort) List

func (_m *PersistentStoragePort) List(ctx context.Context, user string) ([]types.Workspace, error)

List provides a mock function with given fields: ctx, user

func (*PersistentStoragePort) Update

func (_m *PersistentStoragePort) Update(ctx context.Context, workspace types.Workspace, updateFieldNames []string) error

Update provides a mock function with given fields: ctx, workspace, updateFieldNames

Jump to

Keyboard shortcuts

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