github.com/juju/juju@v0.0.0-20240430160146-1752b71fcf00/state/mocks/txn_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/juju/txn/v3 (interfaces: Runner) 3 // 4 // Generated by this command: 5 // 6 // mockgen -package mocks -destination mocks/txn_mock.go github.com/juju/txn/v3 Runner 7 // 8 9 // Package mocks is a generated GoMock package. 10 package mocks 11 12 import ( 13 reflect "reflect" 14 15 txn "github.com/juju/txn/v3" 16 gomock "go.uber.org/mock/gomock" 17 ) 18 19 // MockRunner is a mock of Runner interface. 20 type MockRunner struct { 21 ctrl *gomock.Controller 22 recorder *MockRunnerMockRecorder 23 } 24 25 // MockRunnerMockRecorder is the mock recorder for MockRunner. 26 type MockRunnerMockRecorder struct { 27 mock *MockRunner 28 } 29 30 // NewMockRunner creates a new mock instance. 31 func NewMockRunner(ctrl *gomock.Controller) *MockRunner { 32 mock := &MockRunner{ctrl: ctrl} 33 mock.recorder = &MockRunnerMockRecorder{mock} 34 return mock 35 } 36 37 // EXPECT returns an object that allows the caller to indicate expected use. 38 func (m *MockRunner) EXPECT() *MockRunnerMockRecorder { 39 return m.recorder 40 } 41 42 // MaybePruneTransactions mocks base method. 43 func (m *MockRunner) MaybePruneTransactions(arg0 txn.PruneOptions) error { 44 m.ctrl.T.Helper() 45 ret := m.ctrl.Call(m, "MaybePruneTransactions", arg0) 46 ret0, _ := ret[0].(error) 47 return ret0 48 } 49 50 // MaybePruneTransactions indicates an expected call of MaybePruneTransactions. 51 func (mr *MockRunnerMockRecorder) MaybePruneTransactions(arg0 any) *gomock.Call { 52 mr.mock.ctrl.T.Helper() 53 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MaybePruneTransactions", reflect.TypeOf((*MockRunner)(nil).MaybePruneTransactions), arg0) 54 } 55 56 // ResumeTransactions mocks base method. 57 func (m *MockRunner) ResumeTransactions() error { 58 m.ctrl.T.Helper() 59 ret := m.ctrl.Call(m, "ResumeTransactions") 60 ret0, _ := ret[0].(error) 61 return ret0 62 } 63 64 // ResumeTransactions indicates an expected call of ResumeTransactions. 65 func (mr *MockRunnerMockRecorder) ResumeTransactions() *gomock.Call { 66 mr.mock.ctrl.T.Helper() 67 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResumeTransactions", reflect.TypeOf((*MockRunner)(nil).ResumeTransactions)) 68 } 69 70 // Run mocks base method. 71 func (m *MockRunner) Run(arg0 txn.TransactionSource) error { 72 m.ctrl.T.Helper() 73 ret := m.ctrl.Call(m, "Run", arg0) 74 ret0, _ := ret[0].(error) 75 return ret0 76 } 77 78 // Run indicates an expected call of Run. 79 func (mr *MockRunnerMockRecorder) Run(arg0 any) *gomock.Call { 80 mr.mock.ctrl.T.Helper() 81 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Run", reflect.TypeOf((*MockRunner)(nil).Run), arg0) 82 } 83 84 // RunTransaction mocks base method. 85 func (m *MockRunner) RunTransaction(arg0 *txn.Transaction) error { 86 m.ctrl.T.Helper() 87 ret := m.ctrl.Call(m, "RunTransaction", arg0) 88 ret0, _ := ret[0].(error) 89 return ret0 90 } 91 92 // RunTransaction indicates an expected call of RunTransaction. 93 func (mr *MockRunnerMockRecorder) RunTransaction(arg0 any) *gomock.Call { 94 mr.mock.ctrl.T.Helper() 95 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RunTransaction", reflect.TypeOf((*MockRunner)(nil).RunTransaction), arg0) 96 }