...
1
2
3
4
5 package internal
6
7 import (
8 context "context"
9 reflect "reflect"
10
11 gomock "github.com/golang/mock/gomock"
12 )
13
14
15 type MockTransactional struct {
16 ctrl *gomock.Controller
17 recorder *MockTransactionalMockRecorder
18 }
19
20
21 type MockTransactionalMockRecorder struct {
22 mock *MockTransactional
23 }
24
25
26 func NewMockTransactional(ctrl *gomock.Controller) *MockTransactional {
27 mock := &MockTransactional{ctrl: ctrl}
28 mock.recorder = &MockTransactionalMockRecorder{mock}
29 return mock
30 }
31
32
33 func (m *MockTransactional) EXPECT() *MockTransactionalMockRecorder {
34 return m.recorder
35 }
36
37
38 func (m *MockTransactional) BeginTX(arg0 context.Context) (context.Context, error) {
39 m.ctrl.T.Helper()
40 ret := m.ctrl.Call(m, "BeginTX", arg0)
41 ret0, _ := ret[0].(context.Context)
42 ret1, _ := ret[1].(error)
43 return ret0, ret1
44 }
45
46
47 func (mr *MockTransactionalMockRecorder) BeginTX(arg0 interface{}) *gomock.Call {
48 mr.mock.ctrl.T.Helper()
49 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BeginTX", reflect.TypeOf((*MockTransactional)(nil).BeginTX), arg0)
50 }
51
52
53 func (m *MockTransactional) Commit(arg0 context.Context) error {
54 m.ctrl.T.Helper()
55 ret := m.ctrl.Call(m, "Commit", arg0)
56 ret0, _ := ret[0].(error)
57 return ret0
58 }
59
60
61 func (mr *MockTransactionalMockRecorder) Commit(arg0 interface{}) *gomock.Call {
62 mr.mock.ctrl.T.Helper()
63 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Commit", reflect.TypeOf((*MockTransactional)(nil).Commit), arg0)
64 }
65
66
67 func (m *MockTransactional) Rollback(arg0 context.Context) error {
68 m.ctrl.T.Helper()
69 ret := m.ctrl.Call(m, "Rollback", arg0)
70 ret0, _ := ret[0].(error)
71 return ret0
72 }
73
74
75 func (mr *MockTransactionalMockRecorder) Rollback(arg0 interface{}) *gomock.Call {
76 mr.mock.ctrl.T.Helper()
77 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Rollback", reflect.TypeOf((*MockTransactional)(nil).Rollback), arg0)
78 }
79
View as plain text