executor

package
v0.0.0-...-5230034 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package mock_executor is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(svc *service.Provider, handlerFactory handlers.Factory) interfaces.CommandExecutor

New creates a new executor

Types

type EvebotCommandExecutor

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

EvebotCommandExecutor is the data structure that implements the Executor

func (*EvebotCommandExecutor) Execute

func (h *EvebotCommandExecutor) Execute(ctx context.Context, cmd commands.EvebotCommand, timestamp string)

Execute satisfies the Executor.Execute interface

type MockExecutor

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

MockExecutor is a mock of Executor interface

func NewMockExecutor

func NewMockExecutor(ctrl *gomock.Controller) *MockExecutor

NewMockExecutor creates a new mock instance

func (*MockExecutor) EXPECT

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

func (*MockExecutor) Execute

func (m *MockExecutor) Execute(ctx context.Context, cmd commands.EvebotCommand, timestamp string)

Execute mocks base method

type MockExecutorMockRecorder

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

MockExecutorMockRecorder is the mock recorder for MockExecutor

func (*MockExecutorMockRecorder) Execute

func (mr *MockExecutorMockRecorder) Execute(ctx, cmd, timestamp interface{}) *gomock.Call

Execute indicates an expected call of Execute

Jump to

Keyboard shortcuts

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