logicexecutor

package
v0.9.15 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogicExecutor

type LogicExecutor interface {
	Execute(ctx context.Context, transcript *common.Transcript) (artifacts.RequestResult, error)
	ExecuteMethod(ctx context.Context, transcript *common.Transcript) (artifacts.RequestResult, error)
	ExecuteConstructor(ctx context.Context, transcript *common.Transcript) (artifacts.RequestResult, error)
}

func NewLogicExecutor

func NewLogicExecutor() LogicExecutor

type LogicExecutorMock

type LogicExecutorMock struct {
	ExecuteMock mLogicExecutorMockExecute

	ExecuteConstructorMock mLogicExecutorMockExecuteConstructor

	ExecuteMethodMock mLogicExecutorMockExecuteMethod
	// contains filtered or unexported fields
}

LogicExecutorMock implements LogicExecutor

func NewLogicExecutorMock

func NewLogicExecutorMock(t minimock.Tester) *LogicExecutorMock

NewLogicExecutorMock returns a mock for LogicExecutor

func (*LogicExecutorMock) Execute

func (mmExecute *LogicExecutorMock) Execute(ctx context.Context, transcript *common.Transcript) (r1 artifacts.RequestResult, err error)

Execute implements LogicExecutor

func (*LogicExecutorMock) ExecuteAfterCounter

func (mmExecute *LogicExecutorMock) ExecuteAfterCounter() uint64

ExecuteAfterCounter returns a count of finished LogicExecutorMock.Execute invocations

func (*LogicExecutorMock) ExecuteBeforeCounter

func (mmExecute *LogicExecutorMock) ExecuteBeforeCounter() uint64

ExecuteBeforeCounter returns a count of LogicExecutorMock.Execute invocations

func (*LogicExecutorMock) ExecuteConstructor

func (mmExecuteConstructor *LogicExecutorMock) ExecuteConstructor(ctx context.Context, transcript *common.Transcript) (r1 artifacts.RequestResult, err error)

ExecuteConstructor implements LogicExecutor

func (*LogicExecutorMock) ExecuteConstructorAfterCounter

func (mmExecuteConstructor *LogicExecutorMock) ExecuteConstructorAfterCounter() uint64

ExecuteConstructorAfterCounter returns a count of finished LogicExecutorMock.ExecuteConstructor invocations

func (*LogicExecutorMock) ExecuteConstructorBeforeCounter

func (mmExecuteConstructor *LogicExecutorMock) ExecuteConstructorBeforeCounter() uint64

ExecuteConstructorBeforeCounter returns a count of LogicExecutorMock.ExecuteConstructor invocations

func (*LogicExecutorMock) ExecuteMethod

func (mmExecuteMethod *LogicExecutorMock) ExecuteMethod(ctx context.Context, transcript *common.Transcript) (r1 artifacts.RequestResult, err error)

ExecuteMethod implements LogicExecutor

func (*LogicExecutorMock) ExecuteMethodAfterCounter

func (mmExecuteMethod *LogicExecutorMock) ExecuteMethodAfterCounter() uint64

ExecuteMethodAfterCounter returns a count of finished LogicExecutorMock.ExecuteMethod invocations

func (*LogicExecutorMock) ExecuteMethodBeforeCounter

func (mmExecuteMethod *LogicExecutorMock) ExecuteMethodBeforeCounter() uint64

ExecuteMethodBeforeCounter returns a count of LogicExecutorMock.ExecuteMethod invocations

func (*LogicExecutorMock) MinimockExecuteConstructorDone

func (m *LogicExecutorMock) MinimockExecuteConstructorDone() bool

MinimockExecuteConstructorDone returns true if the count of the ExecuteConstructor invocations corresponds the number of defined expectations

func (*LogicExecutorMock) MinimockExecuteConstructorInspect

func (m *LogicExecutorMock) MinimockExecuteConstructorInspect()

MinimockExecuteConstructorInspect logs each unmet expectation

func (*LogicExecutorMock) MinimockExecuteDone

func (m *LogicExecutorMock) MinimockExecuteDone() bool

MinimockExecuteDone returns true if the count of the Execute invocations corresponds the number of defined expectations

func (*LogicExecutorMock) MinimockExecuteInspect

func (m *LogicExecutorMock) MinimockExecuteInspect()

MinimockExecuteInspect logs each unmet expectation

func (*LogicExecutorMock) MinimockExecuteMethodDone

func (m *LogicExecutorMock) MinimockExecuteMethodDone() bool

MinimockExecuteMethodDone returns true if the count of the ExecuteMethod invocations corresponds the number of defined expectations

func (*LogicExecutorMock) MinimockExecuteMethodInspect

func (m *LogicExecutorMock) MinimockExecuteMethodInspect()

MinimockExecuteMethodInspect logs each unmet expectation

func (*LogicExecutorMock) MinimockFinish

func (m *LogicExecutorMock) MinimockFinish()

MinimockFinish checks that all mocked methods have been called the expected number of times

func (*LogicExecutorMock) MinimockWait

func (m *LogicExecutorMock) MinimockWait(timeout mm_time.Duration)

MinimockWait waits for all mocked methods to be called the expected number of times

type LogicExecutorMockExecuteConstructorExpectation

type LogicExecutorMockExecuteConstructorExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

LogicExecutorMockExecuteConstructorExpectation specifies expectation struct of the LogicExecutor.ExecuteConstructor

func (*LogicExecutorMockExecuteConstructorExpectation) Then

Then sets up LogicExecutor.ExecuteConstructor return parameters for the expectation previously defined by the When method

type LogicExecutorMockExecuteConstructorParams

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

LogicExecutorMockExecuteConstructorParams contains parameters of the LogicExecutor.ExecuteConstructor

type LogicExecutorMockExecuteConstructorResults

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

LogicExecutorMockExecuteConstructorResults contains results of the LogicExecutor.ExecuteConstructor

type LogicExecutorMockExecuteExpectation

type LogicExecutorMockExecuteExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

LogicExecutorMockExecuteExpectation specifies expectation struct of the LogicExecutor.Execute

func (*LogicExecutorMockExecuteExpectation) Then

Then sets up LogicExecutor.Execute return parameters for the expectation previously defined by the When method

type LogicExecutorMockExecuteMethodExpectation

type LogicExecutorMockExecuteMethodExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

LogicExecutorMockExecuteMethodExpectation specifies expectation struct of the LogicExecutor.ExecuteMethod

func (*LogicExecutorMockExecuteMethodExpectation) Then

Then sets up LogicExecutor.ExecuteMethod return parameters for the expectation previously defined by the When method

type LogicExecutorMockExecuteMethodParams

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

LogicExecutorMockExecuteMethodParams contains parameters of the LogicExecutor.ExecuteMethod

type LogicExecutorMockExecuteMethodResults

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

LogicExecutorMockExecuteMethodResults contains results of the LogicExecutor.ExecuteMethod

type LogicExecutorMockExecuteParams

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

LogicExecutorMockExecuteParams contains parameters of the LogicExecutor.Execute

type LogicExecutorMockExecuteResults

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

LogicExecutorMockExecuteResults contains results of the LogicExecutor.Execute

Jump to

Keyboard shortcuts

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