mocks

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockFsmService

type MockFsmService[T any] struct {
	// contains filtered or unexported fields
}

MockFsmService is a mock of FsmService interface.

func NewMockFsmService

func NewMockFsmService[T any](ctrl *gomock.Controller) *MockFsmService[T]

NewMockFsmService creates a new mock instance.

func (*MockFsmService[T]) EXPECT

func (m *MockFsmService[T]) EXPECT() *MockFsmServiceMockRecorder[T]

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockFsmService[T]) Execute

func (m *MockFsmService[T]) Execute(ctx context.Context, request model.FsmRequest) (model.FsmResponse, *errors.FsmError)

Execute mocks base method.

type MockFsmServiceMockRecorder

type MockFsmServiceMockRecorder[T any] struct {
	// contains filtered or unexported fields
}

MockFsmServiceMockRecorder is the mock recorder for MockFsmService.

func (*MockFsmServiceMockRecorder[T]) Execute

func (mr *MockFsmServiceMockRecorder[T]) Execute(ctx, request any) *gomock.Call

Execute indicates an expected call of Execute.

type MockJourneyStore

type MockJourneyStore[T any] struct {
	// contains filtered or unexported fields
}

MockJourneyStore is a mock of JourneyStore interface.

func NewMockJourneyStore

func NewMockJourneyStore[T any](ctrl *gomock.Controller) *MockJourneyStore[T]

NewMockJourneyStore creates a new mock instance.

func (*MockJourneyStore[T]) Create

func (m *MockJourneyStore[T]) Create(ctx context.Context) (model.Journey[T], *errors.FsmError)

Create mocks base method.

func (*MockJourneyStore[T]) Delete

func (m *MockJourneyStore[T]) Delete(ctx context.Context, jID string) *errors.FsmError

Delete mocks base method.

func (*MockJourneyStore[T]) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockJourneyStore[T]) Get

func (m *MockJourneyStore[T]) Get(ctx context.Context, jID string) (model.Journey[T], *errors.FsmError)

Get mocks base method.

func (*MockJourneyStore[T]) Save

func (m *MockJourneyStore[T]) Save(ctx context.Context, journey model.Journey[T]) *errors.FsmError

Save mocks base method.

type MockJourneyStoreMockRecorder

type MockJourneyStoreMockRecorder[T any] struct {
	// contains filtered or unexported fields
}

MockJourneyStoreMockRecorder is the mock recorder for MockJourneyStore.

func (*MockJourneyStoreMockRecorder[T]) Create

func (mr *MockJourneyStoreMockRecorder[T]) Create(ctx any) *gomock.Call

Create indicates an expected call of Create.

func (*MockJourneyStoreMockRecorder[T]) Delete

func (mr *MockJourneyStoreMockRecorder[T]) Delete(ctx, jID any) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockJourneyStoreMockRecorder[T]) Get

func (mr *MockJourneyStoreMockRecorder[T]) Get(ctx, jID any) *gomock.Call

Get indicates an expected call of Get.

func (*MockJourneyStoreMockRecorder[T]) Save

func (mr *MockJourneyStoreMockRecorder[T]) Save(ctx, journey any) *gomock.Call

Save indicates an expected call of Save.

type MockKeyValueStore

type MockKeyValueStore[T any] struct {
	// contains filtered or unexported fields
}

MockKeyValueStore is a mock of KeyValueStore interface.

func NewMockKeyValueStore

func NewMockKeyValueStore[T any](ctrl *gomock.Controller) *MockKeyValueStore[T]

NewMockKeyValueStore creates a new mock instance.

func (*MockKeyValueStore[T]) Del

func (m *MockKeyValueStore[T]) Del(ctx context.Context, key string) error

Del mocks base method.

func (*MockKeyValueStore[T]) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockKeyValueStore[T]) Get

func (m *MockKeyValueStore[T]) Get(ctx context.Context, key string) (*model.Journey[T], error)

Get mocks base method.

func (*MockKeyValueStore[T]) Set

func (m *MockKeyValueStore[T]) Set(ctx context.Context, key string, Value model.Journey[T]) error

Set mocks base method.

type MockKeyValueStoreMockRecorder

type MockKeyValueStoreMockRecorder[T any] struct {
	// contains filtered or unexported fields
}

MockKeyValueStoreMockRecorder is the mock recorder for MockKeyValueStore.

func (*MockKeyValueStoreMockRecorder[T]) Del

func (mr *MockKeyValueStoreMockRecorder[T]) Del(ctx, key any) *gomock.Call

Del indicates an expected call of Del.

func (*MockKeyValueStoreMockRecorder[T]) Get

func (mr *MockKeyValueStoreMockRecorder[T]) Get(ctx, key any) *gomock.Call

Get indicates an expected call of Get.

func (*MockKeyValueStoreMockRecorder[T]) Set

func (mr *MockKeyValueStoreMockRecorder[T]) Set(ctx, key, Value any) *gomock.Call

Set indicates an expected call of Set.

type MockStateHandler

type MockStateHandler struct {
	// contains filtered or unexported fields
}

MockStateHandler is a mock of StateHandler interface.

func NewMockStateHandler

func NewMockStateHandler(ctrl *gomock.Controller) *MockStateHandler

NewMockStateHandler creates a new mock instance.

func (*MockStateHandler) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockStateHandler) Revisit

func (m *MockStateHandler) Revisit(ctx context.Context, jID string, journeyData any) (any, any, *errors.FsmError)

Revisit mocks base method.

func (*MockStateHandler) Visit

func (m *MockStateHandler) Visit(ctx context.Context, jID string, journeyData, data any) (any, any, string, *errors.FsmError)

Visit mocks base method.

type MockStateHandlerMockRecorder

type MockStateHandlerMockRecorder struct {
	// contains filtered or unexported fields
}

MockStateHandlerMockRecorder is the mock recorder for MockStateHandler.

func (*MockStateHandlerMockRecorder) Revisit

func (mr *MockStateHandlerMockRecorder) Revisit(ctx, jID, journeyData any) *gomock.Call

Revisit indicates an expected call of Revisit.

func (*MockStateHandlerMockRecorder) Visit

func (mr *MockStateHandlerMockRecorder) Visit(ctx, jID, journeyData, data any) *gomock.Call

Visit indicates an expected call of Visit.

Jump to

Keyboard shortcuts

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