Documentation ¶
Index ¶
- type LogicExecutor
- type LogicExecutorMock
- func (mmExecute *LogicExecutorMock) Execute(ctx context.Context, transcript *common.Transcript) (r1 artifacts.RequestResult, err error)
- func (mmExecute *LogicExecutorMock) ExecuteAfterCounter() uint64
- func (mmExecute *LogicExecutorMock) ExecuteBeforeCounter() uint64
- func (mmExecuteConstructor *LogicExecutorMock) ExecuteConstructor(ctx context.Context, transcript *common.Transcript) (r1 artifacts.RequestResult, err error)
- func (mmExecuteConstructor *LogicExecutorMock) ExecuteConstructorAfterCounter() uint64
- func (mmExecuteConstructor *LogicExecutorMock) ExecuteConstructorBeforeCounter() uint64
- func (mmExecuteMethod *LogicExecutorMock) ExecuteMethod(ctx context.Context, transcript *common.Transcript) (r1 artifacts.RequestResult, err error)
- func (mmExecuteMethod *LogicExecutorMock) ExecuteMethodAfterCounter() uint64
- func (mmExecuteMethod *LogicExecutorMock) ExecuteMethodBeforeCounter() uint64
- func (m *LogicExecutorMock) MinimockExecuteConstructorDone() bool
- func (m *LogicExecutorMock) MinimockExecuteConstructorInspect()
- func (m *LogicExecutorMock) MinimockExecuteDone() bool
- func (m *LogicExecutorMock) MinimockExecuteInspect()
- func (m *LogicExecutorMock) MinimockExecuteMethodDone() bool
- func (m *LogicExecutorMock) MinimockExecuteMethodInspect()
- func (m *LogicExecutorMock) MinimockFinish()
- func (m *LogicExecutorMock) MinimockWait(timeout mm_time.Duration)
- type LogicExecutorMockExecuteConstructorExpectation
- type LogicExecutorMockExecuteConstructorParams
- type LogicExecutorMockExecuteConstructorResults
- type LogicExecutorMockExecuteExpectation
- type LogicExecutorMockExecuteMethodExpectation
- type LogicExecutorMockExecuteMethodParams
- type LogicExecutorMockExecuteMethodResults
- type LogicExecutorMockExecuteParams
- type LogicExecutorMockExecuteResults
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 ¶
func (e *LogicExecutorMockExecuteConstructorExpectation) Then(r1 artifacts.RequestResult, err error) *LogicExecutorMock
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 ¶
func (e *LogicExecutorMockExecuteExpectation) Then(r1 artifacts.RequestResult, err error) *LogicExecutorMock
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 ¶
func (e *LogicExecutorMockExecuteMethodExpectation) Then(r1 artifacts.RequestResult, err error) *LogicExecutorMock
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