Merged in feature/docinitialisation (pull request #41)
Queuing Changes and Cfg Testing * staarting * staarting * startedpush * note * save * mocking * removederrs * fixtests * cleanuperrs * newenvsetup * preppingtests * queue * mmovetocfgpassunittests * sortoutconfig * passinginteg * deps * fixtests
This commit is contained in:
@@ -0,0 +1,85 @@
|
||||
// Code generated by mockery v2.46.3. DO NOT EDIT.
|
||||
|
||||
package runnermock
|
||||
|
||||
import (
|
||||
context "context"
|
||||
|
||||
mock "github.com/stretchr/testify/mock"
|
||||
|
||||
types "github.com/aws/aws-sdk-go-v2/service/sqs/types"
|
||||
)
|
||||
|
||||
// MockController is an autogenerated mock type for the Controller type
|
||||
type MockController struct {
|
||||
mock.Mock
|
||||
}
|
||||
|
||||
type MockController_Expecter struct {
|
||||
mock *mock.Mock
|
||||
}
|
||||
|
||||
func (_m *MockController) EXPECT() *MockController_Expecter {
|
||||
return &MockController_Expecter{mock: &_m.Mock}
|
||||
}
|
||||
|
||||
// Process provides a mock function with given fields: ctx, message
|
||||
func (_m *MockController) Process(ctx context.Context, message *types.Message) error {
|
||||
ret := _m.Called(ctx, message)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Process")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(context.Context, *types.Message) error); ok {
|
||||
r0 = rf(ctx, message)
|
||||
} else {
|
||||
r0 = ret.Error(0)
|
||||
}
|
||||
|
||||
return r0
|
||||
}
|
||||
|
||||
// MockController_Process_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Process'
|
||||
type MockController_Process_Call struct {
|
||||
*mock.Call
|
||||
}
|
||||
|
||||
// Process is a helper method to define mock.On call
|
||||
// - ctx context.Context
|
||||
// - message *types.Message
|
||||
func (_e *MockController_Expecter) Process(ctx interface{}, message interface{}) *MockController_Process_Call {
|
||||
return &MockController_Process_Call{Call: _e.mock.On("Process", ctx, message)}
|
||||
}
|
||||
|
||||
func (_c *MockController_Process_Call) Run(run func(ctx context.Context, message *types.Message)) *MockController_Process_Call {
|
||||
_c.Call.Run(func(args mock.Arguments) {
|
||||
run(args[0].(context.Context), args[1].(*types.Message))
|
||||
})
|
||||
return _c
|
||||
}
|
||||
|
||||
func (_c *MockController_Process_Call) Return(_a0 error) *MockController_Process_Call {
|
||||
_c.Call.Return(_a0)
|
||||
return _c
|
||||
}
|
||||
|
||||
func (_c *MockController_Process_Call) RunAndReturn(run func(context.Context, *types.Message) error) *MockController_Process_Call {
|
||||
_c.Call.Return(run)
|
||||
return _c
|
||||
}
|
||||
|
||||
// NewMockController creates a new instance of MockController. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewMockController(t interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}) *MockController {
|
||||
mock := &MockController{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
Reference in New Issue
Block a user