github.com/status-im/status-go@v1.1.0/rpc/network/mock/network.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: rpc/network/network.go 3 4 // Package mock_network is a generated GoMock package. 5 package mock_network 6 7 import ( 8 reflect "reflect" 9 10 gomock "github.com/golang/mock/gomock" 11 12 params "github.com/status-im/status-go/params" 13 ) 14 15 // MockManagerInterface is a mock of ManagerInterface interface. 16 type MockManagerInterface struct { 17 ctrl *gomock.Controller 18 recorder *MockManagerInterfaceMockRecorder 19 } 20 21 // MockManagerInterfaceMockRecorder is the mock recorder for MockManagerInterface. 22 type MockManagerInterfaceMockRecorder struct { 23 mock *MockManagerInterface 24 } 25 26 // NewMockManagerInterface creates a new mock instance. 27 func NewMockManagerInterface(ctrl *gomock.Controller) *MockManagerInterface { 28 mock := &MockManagerInterface{ctrl: ctrl} 29 mock.recorder = &MockManagerInterfaceMockRecorder{mock} 30 return mock 31 } 32 33 // EXPECT returns an object that allows the caller to indicate expected use. 34 func (m *MockManagerInterface) EXPECT() *MockManagerInterfaceMockRecorder { 35 return m.recorder 36 } 37 38 // Find mocks base method. 39 func (m *MockManagerInterface) Find(chainID uint64) *params.Network { 40 m.ctrl.T.Helper() 41 ret := m.ctrl.Call(m, "Find", chainID) 42 ret0, _ := ret[0].(*params.Network) 43 return ret0 44 } 45 46 // Find indicates an expected call of Find. 47 func (mr *MockManagerInterfaceMockRecorder) Find(chainID interface{}) *gomock.Call { 48 mr.mock.ctrl.T.Helper() 49 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Find", reflect.TypeOf((*MockManagerInterface)(nil).Find), chainID) 50 } 51 52 // Get mocks base method. 53 func (m *MockManagerInterface) Get(onlyEnabled bool) ([]*params.Network, error) { 54 m.ctrl.T.Helper() 55 ret := m.ctrl.Call(m, "Get", onlyEnabled) 56 ret0, _ := ret[0].([]*params.Network) 57 ret1, _ := ret[1].(error) 58 return ret0, ret1 59 } 60 61 // Get indicates an expected call of Get. 62 func (mr *MockManagerInterfaceMockRecorder) Get(onlyEnabled interface{}) *gomock.Call { 63 mr.mock.ctrl.T.Helper() 64 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockManagerInterface)(nil).Get), onlyEnabled) 65 } 66 67 // GetAll mocks base method. 68 func (m *MockManagerInterface) GetAll() ([]*params.Network, error) { 69 m.ctrl.T.Helper() 70 ret := m.ctrl.Call(m, "GetAll") 71 ret0, _ := ret[0].([]*params.Network) 72 ret1, _ := ret[1].(error) 73 return ret0, ret1 74 } 75 76 // GetAll indicates an expected call of GetAll. 77 func (mr *MockManagerInterfaceMockRecorder) GetAll() *gomock.Call { 78 mr.mock.ctrl.T.Helper() 79 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAll", reflect.TypeOf((*MockManagerInterface)(nil).GetAll)) 80 } 81 82 // GetConfiguredNetworks mocks base method. 83 func (m *MockManagerInterface) GetConfiguredNetworks() []params.Network { 84 m.ctrl.T.Helper() 85 ret := m.ctrl.Call(m, "GetConfiguredNetworks") 86 ret0, _ := ret[0].([]params.Network) 87 return ret0 88 } 89 90 // GetConfiguredNetworks indicates an expected call of GetConfiguredNetworks. 91 func (mr *MockManagerInterfaceMockRecorder) GetConfiguredNetworks() *gomock.Call { 92 mr.mock.ctrl.T.Helper() 93 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetConfiguredNetworks", reflect.TypeOf((*MockManagerInterface)(nil).GetConfiguredNetworks)) 94 } 95 96 // GetTestNetworksEnabled mocks base method. 97 func (m *MockManagerInterface) GetTestNetworksEnabled() (bool, error) { 98 m.ctrl.T.Helper() 99 ret := m.ctrl.Call(m, "GetTestNetworksEnabled") 100 ret0, _ := ret[0].(bool) 101 ret1, _ := ret[1].(error) 102 return ret0, ret1 103 } 104 105 // GetTestNetworksEnabled indicates an expected call of GetTestNetworksEnabled. 106 func (mr *MockManagerInterfaceMockRecorder) GetTestNetworksEnabled() *gomock.Call { 107 mr.mock.ctrl.T.Helper() 108 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTestNetworksEnabled", reflect.TypeOf((*MockManagerInterface)(nil).GetTestNetworksEnabled)) 109 }