code.vegaprotocol.io/vega@v0.79.0/core/statevar/mocks/topology_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: code.vegaprotocol.io/vega/core/statevar (interfaces: Topology) 3 4 // Package mocks is a generated GoMock package. 5 package mocks 6 7 import ( 8 reflect "reflect" 9 10 validators "code.vegaprotocol.io/vega/core/validators" 11 gomock "github.com/golang/mock/gomock" 12 ) 13 14 // MockTopology is a mock of Topology interface. 15 type MockTopology struct { 16 ctrl *gomock.Controller 17 recorder *MockTopologyMockRecorder 18 } 19 20 // MockTopologyMockRecorder is the mock recorder for MockTopology. 21 type MockTopologyMockRecorder struct { 22 mock *MockTopology 23 } 24 25 // NewMockTopology creates a new mock instance. 26 func NewMockTopology(ctrl *gomock.Controller) *MockTopology { 27 mock := &MockTopology{ctrl: ctrl} 28 mock.recorder = &MockTopologyMockRecorder{mock} 29 return mock 30 } 31 32 // EXPECT returns an object that allows the caller to indicate expected use. 33 func (m *MockTopology) EXPECT() *MockTopologyMockRecorder { 34 return m.recorder 35 } 36 37 // AllNodeIDs mocks base method. 38 func (m *MockTopology) AllNodeIDs() []string { 39 m.ctrl.T.Helper() 40 ret := m.ctrl.Call(m, "AllNodeIDs") 41 ret0, _ := ret[0].([]string) 42 return ret0 43 } 44 45 // AllNodeIDs indicates an expected call of AllNodeIDs. 46 func (mr *MockTopologyMockRecorder) AllNodeIDs() *gomock.Call { 47 mr.mock.ctrl.T.Helper() 48 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AllNodeIDs", reflect.TypeOf((*MockTopology)(nil).AllNodeIDs)) 49 } 50 51 // Get mocks base method. 52 func (m *MockTopology) Get(arg0 string) *validators.ValidatorData { 53 m.ctrl.T.Helper() 54 ret := m.ctrl.Call(m, "Get", arg0) 55 ret0, _ := ret[0].(*validators.ValidatorData) 56 return ret0 57 } 58 59 // Get indicates an expected call of Get. 60 func (mr *MockTopologyMockRecorder) Get(arg0 interface{}) *gomock.Call { 61 mr.mock.ctrl.T.Helper() 62 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockTopology)(nil).Get), arg0) 63 } 64 65 // GetTotalVotingPower mocks base method. 66 func (m *MockTopology) GetTotalVotingPower() int64 { 67 m.ctrl.T.Helper() 68 ret := m.ctrl.Call(m, "GetTotalVotingPower") 69 ret0, _ := ret[0].(int64) 70 return ret0 71 } 72 73 // GetTotalVotingPower indicates an expected call of GetTotalVotingPower. 74 func (mr *MockTopologyMockRecorder) GetTotalVotingPower() *gomock.Call { 75 mr.mock.ctrl.T.Helper() 76 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTotalVotingPower", reflect.TypeOf((*MockTopology)(nil).GetTotalVotingPower)) 77 } 78 79 // GetVotingPower mocks base method. 80 func (m *MockTopology) GetVotingPower(arg0 string) int64 { 81 m.ctrl.T.Helper() 82 ret := m.ctrl.Call(m, "GetVotingPower", arg0) 83 ret0, _ := ret[0].(int64) 84 return ret0 85 } 86 87 // GetVotingPower indicates an expected call of GetVotingPower. 88 func (mr *MockTopologyMockRecorder) GetVotingPower(arg0 interface{}) *gomock.Call { 89 mr.mock.ctrl.T.Helper() 90 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVotingPower", reflect.TypeOf((*MockTopology)(nil).GetVotingPower), arg0) 91 } 92 93 // IsValidator mocks base method. 94 func (m *MockTopology) IsValidator() bool { 95 m.ctrl.T.Helper() 96 ret := m.ctrl.Call(m, "IsValidator") 97 ret0, _ := ret[0].(bool) 98 return ret0 99 } 100 101 // IsValidator indicates an expected call of IsValidator. 102 func (mr *MockTopologyMockRecorder) IsValidator() *gomock.Call { 103 mr.mock.ctrl.T.Helper() 104 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsValidator", reflect.TypeOf((*MockTopology)(nil).IsValidator)) 105 } 106 107 // IsValidatorVegaPubKey mocks base method. 108 func (m *MockTopology) IsValidatorVegaPubKey(arg0 string) bool { 109 m.ctrl.T.Helper() 110 ret := m.ctrl.Call(m, "IsValidatorVegaPubKey", arg0) 111 ret0, _ := ret[0].(bool) 112 return ret0 113 } 114 115 // IsValidatorVegaPubKey indicates an expected call of IsValidatorVegaPubKey. 116 func (mr *MockTopologyMockRecorder) IsValidatorVegaPubKey(arg0 interface{}) *gomock.Call { 117 mr.mock.ctrl.T.Helper() 118 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsValidatorVegaPubKey", reflect.TypeOf((*MockTopology)(nil).IsValidatorVegaPubKey), arg0) 119 } 120 121 // SelfNodeID mocks base method. 122 func (m *MockTopology) SelfNodeID() string { 123 m.ctrl.T.Helper() 124 ret := m.ctrl.Call(m, "SelfNodeID") 125 ret0, _ := ret[0].(string) 126 return ret0 127 } 128 129 // SelfNodeID indicates an expected call of SelfNodeID. 130 func (mr *MockTopologyMockRecorder) SelfNodeID() *gomock.Call { 131 mr.mock.ctrl.T.Helper() 132 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SelfNodeID", reflect.TypeOf((*MockTopology)(nil).SelfNodeID)) 133 }