github.com/MetalBlockchain/metalgo@v1.11.9/snow/validators/mock_subnet_connector.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/MetalBlockchain/metalgo/snow/validators (interfaces: SubnetConnector) 3 // 4 // Generated by this command: 5 // 6 // mockgen -package=validators -destination=snow/validators/mock_subnet_connector.go github.com/MetalBlockchain/metalgo/snow/validators SubnetConnector 7 // 8 9 // Package validators is a generated GoMock package. 10 package validators 11 12 import ( 13 context "context" 14 reflect "reflect" 15 16 ids "github.com/MetalBlockchain/metalgo/ids" 17 gomock "go.uber.org/mock/gomock" 18 ) 19 20 // MockSubnetConnector is a mock of SubnetConnector interface. 21 type MockSubnetConnector struct { 22 ctrl *gomock.Controller 23 recorder *MockSubnetConnectorMockRecorder 24 } 25 26 // MockSubnetConnectorMockRecorder is the mock recorder for MockSubnetConnector. 27 type MockSubnetConnectorMockRecorder struct { 28 mock *MockSubnetConnector 29 } 30 31 // NewMockSubnetConnector creates a new mock instance. 32 func NewMockSubnetConnector(ctrl *gomock.Controller) *MockSubnetConnector { 33 mock := &MockSubnetConnector{ctrl: ctrl} 34 mock.recorder = &MockSubnetConnectorMockRecorder{mock} 35 return mock 36 } 37 38 // EXPECT returns an object that allows the caller to indicate expected use. 39 func (m *MockSubnetConnector) EXPECT() *MockSubnetConnectorMockRecorder { 40 return m.recorder 41 } 42 43 // ConnectedSubnet mocks base method. 44 func (m *MockSubnetConnector) ConnectedSubnet(arg0 context.Context, arg1 ids.NodeID, arg2 ids.ID) error { 45 m.ctrl.T.Helper() 46 ret := m.ctrl.Call(m, "ConnectedSubnet", arg0, arg1, arg2) 47 ret0, _ := ret[0].(error) 48 return ret0 49 } 50 51 // ConnectedSubnet indicates an expected call of ConnectedSubnet. 52 func (mr *MockSubnetConnectorMockRecorder) ConnectedSubnet(arg0, arg1, arg2 any) *gomock.Call { 53 mr.mock.ctrl.T.Helper() 54 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConnectedSubnet", reflect.TypeOf((*MockSubnetConnector)(nil).ConnectedSubnet), arg0, arg1, arg2) 55 }