diff options
Diffstat (limited to 'src/payload-processor/processor/mock_db.go')
-rw-r--r-- | src/payload-processor/processor/mock_db.go | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/src/payload-processor/processor/mock_db.go b/src/payload-processor/processor/mock_db.go new file mode 100644 index 0000000..235657d --- /dev/null +++ b/src/payload-processor/processor/mock_db.go @@ -0,0 +1,54 @@ +// Code generated by MockGen. DO NOT EDIT. +// Source: db.go +// +// Generated by this command: +// +// mockgen -source=db.go -package=processor -destination=mock_db.go +// + +// Package processor is a generated GoMock package. +package processor + +import ( + context "context" + reflect "reflect" + + gomock "go.uber.org/mock/gomock" +) + +// MockDB is a mock of DB interface. +type MockDB struct { + ctrl *gomock.Controller + recorder *MockDBMockRecorder +} + +// MockDBMockRecorder is the mock recorder for MockDB. +type MockDBMockRecorder struct { + mock *MockDB +} + +// NewMockDB creates a new mock instance. +func NewMockDB(ctrl *gomock.Controller) *MockDB { + mock := &MockDB{ctrl: ctrl} + mock.recorder = &MockDBMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockDB) EXPECT() *MockDBMockRecorder { + return m.recorder +} + +// TestInsert mocks base method. +func (m *MockDB) TestInsert(ctx context.Context, message string) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TestInsert", ctx, message) + ret0, _ := ret[0].(error) + return ret0 +} + +// TestInsert indicates an expected call of TestInsert. +func (mr *MockDBMockRecorder) TestInsert(ctx, message any) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TestInsert", reflect.TypeOf((*MockDB)(nil).TestInsert), ctx, message) +} |