mock_command

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mock_command is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBus

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

MockBus is a mock of Bus interface.

func NewMockBus

func NewMockBus(ctrl *gomock.Controller) *MockBus

NewMockBus creates a new mock instance.

func (*MockBus) Dispatch

func (m *MockBus) Dispatch(arg0 context.Context, arg1 command.Command, arg2 ...command.DispatchOption) error

Dispatch mocks base method.

func (*MockBus) EXPECT

func (m *MockBus) EXPECT() *MockBusMockRecorder

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

func (*MockBus) Subscribe

func (m *MockBus) Subscribe(arg0 context.Context, arg1 ...string) (<-chan command.Context, <-chan error, error)

Subscribe mocks base method.

type MockBusMockRecorder

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

MockBusMockRecorder is the mock recorder for MockBus.

func (*MockBusMockRecorder) Dispatch

func (mr *MockBusMockRecorder) Dispatch(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

Dispatch indicates an expected call of Dispatch.

func (*MockBusMockRecorder) Subscribe

func (mr *MockBusMockRecorder) Subscribe(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Subscribe indicates an expected call of Subscribe.

type MockCommand

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

MockCommand is a mock of Command interface.

func NewMockCommand

func NewMockCommand(ctrl *gomock.Controller) *MockCommand

NewMockCommand creates a new mock instance.

func (*MockCommand) Aggregate

func (m *MockCommand) Aggregate() (uuid.UUID, string)

Aggregate mocks base method.

func (*MockCommand) EXPECT

func (m *MockCommand) EXPECT() *MockCommandMockRecorder

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

func (*MockCommand) ID

func (m *MockCommand) ID() uuid.UUID

ID mocks base method.

func (*MockCommand) Name

func (m *MockCommand) Name() string

Name mocks base method.

func (*MockCommand) Payload

func (m *MockCommand) Payload() interface{}

Payload mocks base method.

type MockCommandMockRecorder

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

MockCommandMockRecorder is the mock recorder for MockCommand.

func (*MockCommandMockRecorder) Aggregate

func (mr *MockCommandMockRecorder) Aggregate() *gomock.Call

Aggregate indicates an expected call of Aggregate.

func (*MockCommandMockRecorder) ID

ID indicates an expected call of ID.

func (*MockCommandMockRecorder) Name

func (mr *MockCommandMockRecorder) Name() *gomock.Call

Name indicates an expected call of Name.

func (*MockCommandMockRecorder) Payload

func (mr *MockCommandMockRecorder) Payload() *gomock.Call

Payload indicates an expected call of Payload.

Jump to

Keyboard shortcuts

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