Documentation ¶
Index ¶
- type ExecutionChunk
- type ExecutionChunkType
- type ExecutionClassifyMock
- type ExecutionClassifyMockInstance
- type ExecutionMock
- func (m *ExecutionMock) AddAbort(fn ExecutionMockAbortCheckFunc) *ExecutionMock
- func (m *ExecutionMock) AddContinue(fn ExecutionMockContinueCheckFunc, returnValue *execution.Update) *ExecutionMock
- func (m *ExecutionMock) AddStart(fn ExecutionMockStartCheckFunc, returnValue *execution.Update) *ExecutionMock
- type ExecutionMockAbortCheckFunc
- type ExecutionMockContinueCheckFunc
- type ExecutionMockStartCheckFunc
- type ServiceMock
- func (s *ServiceMock) AddExecutionClassify(key interface{}, v1 contract.MethodIsolation, v2 error)
- func (s *ServiceMock) AddExecutionMock(key interface{}) *ExecutionMock
- func (s *ServiceMock) CreateAdapter(ctx context.Context) runner.ServiceAdapter
- func (s *ServiceMock) ExecutionAbort(run runner.RunState)
- func (s *ServiceMock) ExecutionClassify(execution execution.Context) (contract.MethodIsolation, error)
- func (s *ServiceMock) ExecutionContinue(run runner.RunState, outgoingResult requestresult.OutgoingExecutionResult)
- func (s *ServiceMock) ExecutionStart(execution execution.Context) runner.RunState
- func (s *ServiceMock) MinimockFinish()
- func (s *ServiceMock) MinimockWait(timeout time.Duration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecutionChunk ¶
type ExecutionChunk struct {
// contains filtered or unexported fields
}
type ExecutionChunkType ¶
type ExecutionChunkType int
const ( Start ExecutionChunkType = iota Continue Abort )
func (ExecutionChunkType) String ¶
func (t ExecutionChunkType) String() string
type ExecutionClassifyMock ¶
type ExecutionClassifyMock struct {
// contains filtered or unexported fields
}
func (*ExecutionClassifyMock) Get ¶
func (m *ExecutionClassifyMock) Get(key interface{}) (*ExecutionClassifyMockInstance, bool)
func (*ExecutionClassifyMock) Set ¶
func (m *ExecutionClassifyMock) Set(key interface{}, v1 contract.MethodIsolation, v2 error) *ExecutionClassifyMock
type ExecutionClassifyMockInstance ¶
type ExecutionClassifyMockInstance struct {
// contains filtered or unexported fields
}
type ExecutionMock ¶
type ExecutionMock struct {
// contains filtered or unexported fields
}
func (*ExecutionMock) AddAbort ¶
func (m *ExecutionMock) AddAbort(fn ExecutionMockAbortCheckFunc) *ExecutionMock
func (*ExecutionMock) AddContinue ¶
func (m *ExecutionMock) AddContinue(fn ExecutionMockContinueCheckFunc, returnValue *execution.Update) *ExecutionMock
func (*ExecutionMock) AddStart ¶
func (m *ExecutionMock) AddStart(fn ExecutionMockStartCheckFunc, returnValue *execution.Update) *ExecutionMock
type ExecutionMockAbortCheckFunc ¶
type ExecutionMockAbortCheckFunc func()
type ExecutionMockContinueCheckFunc ¶
type ExecutionMockContinueCheckFunc func(result []byte)
type ServiceMock ¶
type ServiceMock struct {
// contains filtered or unexported fields
}
func NewServiceMock ¶
func NewServiceMock(ctx context.Context, t minimock.Tester, keyConstructor func(execution execution.Context) interface{}) *ServiceMock
func (*ServiceMock) AddExecutionClassify ¶
func (s *ServiceMock) AddExecutionClassify(key interface{}, v1 contract.MethodIsolation, v2 error)
func (*ServiceMock) AddExecutionMock ¶
func (s *ServiceMock) AddExecutionMock(key interface{}) *ExecutionMock
func (*ServiceMock) CreateAdapter ¶
func (s *ServiceMock) CreateAdapter(ctx context.Context) runner.ServiceAdapter
func (*ServiceMock) ExecutionAbort ¶
func (s *ServiceMock) ExecutionAbort(run runner.RunState)
func (*ServiceMock) ExecutionClassify ¶
func (s *ServiceMock) ExecutionClassify(execution execution.Context) (contract.MethodIsolation, error)
func (*ServiceMock) ExecutionContinue ¶
func (s *ServiceMock) ExecutionContinue(run runner.RunState, outgoingResult requestresult.OutgoingExecutionResult)
func (*ServiceMock) ExecutionStart ¶
func (s *ServiceMock) ExecutionStart(execution execution.Context) runner.RunState
func (*ServiceMock) MinimockFinish ¶
func (s *ServiceMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*ServiceMock) MinimockWait ¶
func (s *ServiceMock) MinimockWait(timeout time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
Click to show internal directories.
Click to hide internal directories.