github.com/klaytn/klaytn@v1.12.1/node/cn/mocks/miner_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/klaytn/klaytn/node/cn (interfaces: Miner) 3 4 // Package mocks is a generated GoMock package. 5 package mocks 6 7 import ( 8 reflect "reflect" 9 10 gomock "github.com/golang/mock/gomock" 11 state "github.com/klaytn/klaytn/blockchain/state" 12 types "github.com/klaytn/klaytn/blockchain/types" 13 work "github.com/klaytn/klaytn/work" 14 ) 15 16 // MockMiner is a mock of Miner interface 17 type MockMiner struct { 18 ctrl *gomock.Controller 19 recorder *MockMinerMockRecorder 20 } 21 22 // MockMinerMockRecorder is the mock recorder for MockMiner 23 type MockMinerMockRecorder struct { 24 mock *MockMiner 25 } 26 27 // NewMockMiner creates a new mock instance 28 func NewMockMiner(ctrl *gomock.Controller) *MockMiner { 29 mock := &MockMiner{ctrl: ctrl} 30 mock.recorder = &MockMinerMockRecorder{mock} 31 return mock 32 } 33 34 // EXPECT returns an object that allows the caller to indicate expected use 35 func (m *MockMiner) EXPECT() *MockMinerMockRecorder { 36 return m.recorder 37 } 38 39 // HashRate mocks base method 40 func (m *MockMiner) HashRate() int64 { 41 m.ctrl.T.Helper() 42 ret := m.ctrl.Call(m, "HashRate") 43 ret0, _ := ret[0].(int64) 44 return ret0 45 } 46 47 // HashRate indicates an expected call of HashRate 48 func (mr *MockMinerMockRecorder) HashRate() *gomock.Call { 49 mr.mock.ctrl.T.Helper() 50 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HashRate", reflect.TypeOf((*MockMiner)(nil).HashRate)) 51 } 52 53 // Mining mocks base method 54 func (m *MockMiner) Mining() bool { 55 m.ctrl.T.Helper() 56 ret := m.ctrl.Call(m, "Mining") 57 ret0, _ := ret[0].(bool) 58 return ret0 59 } 60 61 // Mining indicates an expected call of Mining 62 func (mr *MockMinerMockRecorder) Mining() *gomock.Call { 63 mr.mock.ctrl.T.Helper() 64 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Mining", reflect.TypeOf((*MockMiner)(nil).Mining)) 65 } 66 67 // Pending mocks base method 68 func (m *MockMiner) Pending() (*types.Block, *state.StateDB) { 69 m.ctrl.T.Helper() 70 ret := m.ctrl.Call(m, "Pending") 71 ret0, _ := ret[0].(*types.Block) 72 ret1, _ := ret[1].(*state.StateDB) 73 return ret0, ret1 74 } 75 76 // Pending indicates an expected call of Pending 77 func (mr *MockMinerMockRecorder) Pending() *gomock.Call { 78 mr.mock.ctrl.T.Helper() 79 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Pending", reflect.TypeOf((*MockMiner)(nil).Pending)) 80 } 81 82 // PendingBlock mocks base method 83 func (m *MockMiner) PendingBlock() *types.Block { 84 m.ctrl.T.Helper() 85 ret := m.ctrl.Call(m, "PendingBlock") 86 ret0, _ := ret[0].(*types.Block) 87 return ret0 88 } 89 90 // PendingBlock indicates an expected call of PendingBlock 91 func (mr *MockMinerMockRecorder) PendingBlock() *gomock.Call { 92 mr.mock.ctrl.T.Helper() 93 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PendingBlock", reflect.TypeOf((*MockMiner)(nil).PendingBlock)) 94 } 95 96 // Register mocks base method 97 func (m *MockMiner) Register(arg0 work.Agent) { 98 m.ctrl.T.Helper() 99 m.ctrl.Call(m, "Register", arg0) 100 } 101 102 // Register indicates an expected call of Register 103 func (mr *MockMinerMockRecorder) Register(arg0 interface{}) *gomock.Call { 104 mr.mock.ctrl.T.Helper() 105 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Register", reflect.TypeOf((*MockMiner)(nil).Register), arg0) 106 } 107 108 // SetExtra mocks base method 109 func (m *MockMiner) SetExtra(arg0 []byte) error { 110 m.ctrl.T.Helper() 111 ret := m.ctrl.Call(m, "SetExtra", arg0) 112 ret0, _ := ret[0].(error) 113 return ret0 114 } 115 116 // SetExtra indicates an expected call of SetExtra 117 func (mr *MockMinerMockRecorder) SetExtra(arg0 interface{}) *gomock.Call { 118 mr.mock.ctrl.T.Helper() 119 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetExtra", reflect.TypeOf((*MockMiner)(nil).SetExtra), arg0) 120 } 121 122 // Start mocks base method 123 func (m *MockMiner) Start() { 124 m.ctrl.T.Helper() 125 m.ctrl.Call(m, "Start") 126 } 127 128 // Start indicates an expected call of Start 129 func (mr *MockMinerMockRecorder) Start() *gomock.Call { 130 mr.mock.ctrl.T.Helper() 131 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MockMiner)(nil).Start)) 132 } 133 134 // Stop mocks base method 135 func (m *MockMiner) Stop() { 136 m.ctrl.T.Helper() 137 m.ctrl.Call(m, "Stop") 138 } 139 140 // Stop indicates an expected call of Stop 141 func (mr *MockMinerMockRecorder) Stop() *gomock.Call { 142 mr.mock.ctrl.T.Helper() 143 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stop", reflect.TypeOf((*MockMiner)(nil).Stop)) 144 }