github.com/celestiaorg/celestia-node@v0.15.0-beta.1/nodebuilder/fraud/mocks/api.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/celestiaorg/celestia-node/nodebuilder/fraud (interfaces: Module) 3 4 // Package mocks is a generated GoMock package. 5 package mocks 6 7 import ( 8 context "context" 9 reflect "reflect" 10 11 fraud "github.com/celestiaorg/celestia-node/nodebuilder/fraud" 12 fraud0 "github.com/celestiaorg/go-fraud" 13 gomock "github.com/golang/mock/gomock" 14 ) 15 16 // MockModule is a mock of Module interface. 17 type MockModule struct { 18 ctrl *gomock.Controller 19 recorder *MockModuleMockRecorder 20 } 21 22 // MockModuleMockRecorder is the mock recorder for MockModule. 23 type MockModuleMockRecorder struct { 24 mock *MockModule 25 } 26 27 // NewMockModule creates a new mock instance. 28 func NewMockModule(ctrl *gomock.Controller) *MockModule { 29 mock := &MockModule{ctrl: ctrl} 30 mock.recorder = &MockModuleMockRecorder{mock} 31 return mock 32 } 33 34 // EXPECT returns an object that allows the caller to indicate expected use. 35 func (m *MockModule) EXPECT() *MockModuleMockRecorder { 36 return m.recorder 37 } 38 39 // Get mocks base method. 40 func (m *MockModule) Get(arg0 context.Context, arg1 fraud0.ProofType) ([]fraud.Proof, error) { 41 m.ctrl.T.Helper() 42 ret := m.ctrl.Call(m, "Get", arg0, arg1) 43 ret0, _ := ret[0].([]fraud.Proof) 44 ret1, _ := ret[1].(error) 45 return ret0, ret1 46 } 47 48 // Get indicates an expected call of Get. 49 func (mr *MockModuleMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call { 50 mr.mock.ctrl.T.Helper() 51 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockModule)(nil).Get), arg0, arg1) 52 } 53 54 // Subscribe mocks base method. 55 func (m *MockModule) Subscribe(arg0 context.Context, arg1 fraud0.ProofType) (<-chan *fraud.Proof, error) { 56 m.ctrl.T.Helper() 57 ret := m.ctrl.Call(m, "Subscribe", arg0, arg1) 58 ret0, _ := ret[0].(<-chan *fraud.Proof) 59 ret1, _ := ret[1].(error) 60 return ret0, ret1 61 } 62 63 // Subscribe indicates an expected call of Subscribe. 64 func (mr *MockModuleMockRecorder) Subscribe(arg0, arg1 interface{}) *gomock.Call { 65 mr.mock.ctrl.T.Helper() 66 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Subscribe", reflect.TypeOf((*MockModule)(nil).Subscribe), arg0, arg1) 67 }