github.com/aergoio/aergo@v1.3.1/p2p/p2pmock/mock_chainaccessor.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/aergoio/aergo/types (interfaces: ChainAccessor) 3 4 // package p2pmock is a generated GoMock package. 5 package p2pmock 6 7 import ( 8 types "github.com/aergoio/aergo/types" 9 gomock "github.com/golang/mock/gomock" 10 big "math/big" 11 reflect "reflect" 12 ) 13 14 // MockChainAccessor is a mock of ChainAccessor interface 15 type MockChainAccessor struct { 16 ctrl *gomock.Controller 17 recorder *MockChainAccessorMockRecorder 18 } 19 20 // MockChainAccessorMockRecorder is the mock recorder for MockChainAccessor 21 type MockChainAccessorMockRecorder struct { 22 mock *MockChainAccessor 23 } 24 25 // NewMockChainAccessor creates a new mock instance 26 func NewMockChainAccessor(ctrl *gomock.Controller) *MockChainAccessor { 27 mock := &MockChainAccessor{ctrl: ctrl} 28 mock.recorder = &MockChainAccessorMockRecorder{mock} 29 return mock 30 } 31 32 // EXPECT returns an object that allows the caller to indicate expected use 33 func (m *MockChainAccessor) EXPECT() *MockChainAccessorMockRecorder { 34 return m.recorder 35 } 36 37 // GetBestBlock mocks base method 38 func (m *MockChainAccessor) GetBestBlock() (*types.Block, error) { 39 m.ctrl.T.Helper() 40 ret := m.ctrl.Call(m, "GetBestBlock") 41 ret0, _ := ret[0].(*types.Block) 42 ret1, _ := ret[1].(error) 43 return ret0, ret1 44 } 45 46 // GetBestBlock indicates an expected call of GetBestBlock 47 func (mr *MockChainAccessorMockRecorder) GetBestBlock() *gomock.Call { 48 mr.mock.ctrl.T.Helper() 49 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBestBlock", reflect.TypeOf((*MockChainAccessor)(nil).GetBestBlock)) 50 } 51 52 // GetBlock mocks base method 53 func (m *MockChainAccessor) GetBlock(arg0 []byte) (*types.Block, error) { 54 m.ctrl.T.Helper() 55 ret := m.ctrl.Call(m, "GetBlock", arg0) 56 ret0, _ := ret[0].(*types.Block) 57 ret1, _ := ret[1].(error) 58 return ret0, ret1 59 } 60 61 // GetBlock indicates an expected call of GetBlock 62 func (mr *MockChainAccessorMockRecorder) GetBlock(arg0 interface{}) *gomock.Call { 63 mr.mock.ctrl.T.Helper() 64 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBlock", reflect.TypeOf((*MockChainAccessor)(nil).GetBlock), arg0) 65 } 66 67 // GetChainStats mocks base method 68 func (m *MockChainAccessor) GetChainStats() string { 69 m.ctrl.T.Helper() 70 ret := m.ctrl.Call(m, "GetChainStats") 71 ret0, _ := ret[0].(string) 72 return ret0 73 } 74 75 // GetChainStats indicates an expected call of GetChainStats 76 func (mr *MockChainAccessorMockRecorder) GetChainStats() *gomock.Call { 77 mr.mock.ctrl.T.Helper() 78 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetChainStats", reflect.TypeOf((*MockChainAccessor)(nil).GetChainStats)) 79 } 80 81 // GetConsensusInfo mocks base method 82 func (m *MockChainAccessor) GetConsensusInfo() string { 83 m.ctrl.T.Helper() 84 ret := m.ctrl.Call(m, "GetConsensusInfo") 85 ret0, _ := ret[0].(string) 86 return ret0 87 } 88 89 // GetConsensusInfo indicates an expected call of GetConsensusInfo 90 func (mr *MockChainAccessorMockRecorder) GetConsensusInfo() *gomock.Call { 91 mr.mock.ctrl.T.Helper() 92 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetConsensusInfo", reflect.TypeOf((*MockChainAccessor)(nil).GetConsensusInfo)) 93 } 94 95 // GetEnterpriseConfig mocks base method 96 func (m *MockChainAccessor) GetEnterpriseConfig(arg0 string) (*types.EnterpriseConfig, error) { 97 m.ctrl.T.Helper() 98 ret := m.ctrl.Call(m, "GetEnterpriseConfig", arg0) 99 ret0, _ := ret[0].(*types.EnterpriseConfig) 100 ret1, _ := ret[1].(error) 101 return ret0, ret1 102 } 103 104 // GetEnterpriseConfig indicates an expected call of GetEnterpriseConfig 105 func (mr *MockChainAccessorMockRecorder) GetEnterpriseConfig(arg0 interface{}) *gomock.Call { 106 mr.mock.ctrl.T.Helper() 107 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEnterpriseConfig", reflect.TypeOf((*MockChainAccessor)(nil).GetEnterpriseConfig), arg0) 108 } 109 110 // GetGenesisInfo mocks base method 111 func (m *MockChainAccessor) GetGenesisInfo() *types.Genesis { 112 m.ctrl.T.Helper() 113 ret := m.ctrl.Call(m, "GetGenesisInfo") 114 ret0, _ := ret[0].(*types.Genesis) 115 return ret0 116 } 117 118 // GetGenesisInfo indicates an expected call of GetGenesisInfo 119 func (mr *MockChainAccessorMockRecorder) GetGenesisInfo() *gomock.Call { 120 mr.mock.ctrl.T.Helper() 121 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGenesisInfo", reflect.TypeOf((*MockChainAccessor)(nil).GetGenesisInfo)) 122 } 123 124 // GetHashByNo mocks base method 125 func (m *MockChainAccessor) GetHashByNo(arg0 uint64) ([]byte, error) { 126 m.ctrl.T.Helper() 127 ret := m.ctrl.Call(m, "GetHashByNo", arg0) 128 ret0, _ := ret[0].([]byte) 129 ret1, _ := ret[1].(error) 130 return ret0, ret1 131 } 132 133 // GetHashByNo indicates an expected call of GetHashByNo 134 func (mr *MockChainAccessorMockRecorder) GetHashByNo(arg0 interface{}) *gomock.Call { 135 mr.mock.ctrl.T.Helper() 136 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHashByNo", reflect.TypeOf((*MockChainAccessor)(nil).GetHashByNo), arg0) 137 } 138 139 // GetSystemValue mocks base method 140 func (m *MockChainAccessor) GetSystemValue(arg0 types.SystemValue) (*big.Int, error) { 141 m.ctrl.T.Helper() 142 ret := m.ctrl.Call(m, "GetSystemValue", arg0) 143 ret0, _ := ret[0].(*big.Int) 144 ret1, _ := ret[1].(error) 145 return ret0, ret1 146 } 147 148 // GetSystemValue indicates an expected call of GetSystemValue 149 func (mr *MockChainAccessorMockRecorder) GetSystemValue(arg0 interface{}) *gomock.Call { 150 mr.mock.ctrl.T.Helper() 151 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSystemValue", reflect.TypeOf((*MockChainAccessor)(nil).GetSystemValue), arg0) 152 }