github.com/celestiaorg/celestia-node@v0.15.0-beta.1/nodebuilder/da/mocks/api.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/celestiaorg/celestia-node/nodebuilder/da (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 gomock "github.com/golang/mock/gomock" 12 ) 13 14 // MockModule is a mock of Module interface. 15 type MockModule struct { 16 ctrl *gomock.Controller 17 recorder *MockModuleMockRecorder 18 } 19 20 // MockModuleMockRecorder is the mock recorder for MockModule. 21 type MockModuleMockRecorder struct { 22 mock *MockModule 23 } 24 25 // NewMockModule creates a new mock instance. 26 func NewMockModule(ctrl *gomock.Controller) *MockModule { 27 mock := &MockModule{ctrl: ctrl} 28 mock.recorder = &MockModuleMockRecorder{mock} 29 return mock 30 } 31 32 // EXPECT returns an object that allows the caller to indicate expected use. 33 func (m *MockModule) EXPECT() *MockModuleMockRecorder { 34 return m.recorder 35 } 36 37 // Commit mocks base method. 38 func (m *MockModule) Commit(arg0 context.Context, arg1 [][]byte, arg2 []byte) ([][]byte, error) { 39 m.ctrl.T.Helper() 40 ret := m.ctrl.Call(m, "Commit", arg0, arg1, arg2) 41 ret0, _ := ret[0].([][]byte) 42 ret1, _ := ret[1].(error) 43 return ret0, ret1 44 } 45 46 // Commit indicates an expected call of Commit. 47 func (mr *MockModuleMockRecorder) Commit(arg0, arg1, arg2 interface{}) *gomock.Call { 48 mr.mock.ctrl.T.Helper() 49 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Commit", reflect.TypeOf((*MockModule)(nil).Commit), arg0, arg1, arg2) 50 } 51 52 // Get mocks base method. 53 func (m *MockModule) Get(arg0 context.Context, arg1 [][]byte, arg2 []byte) ([][]byte, error) { 54 m.ctrl.T.Helper() 55 ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2) 56 ret0, _ := ret[0].([][]byte) 57 ret1, _ := ret[1].(error) 58 return ret0, ret1 59 } 60 61 // Get indicates an expected call of Get. 62 func (mr *MockModuleMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call { 63 mr.mock.ctrl.T.Helper() 64 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockModule)(nil).Get), arg0, arg1, arg2) 65 } 66 67 // GetIDs mocks base method. 68 func (m *MockModule) GetIDs(arg0 context.Context, arg1 uint64, arg2 []byte) ([][]byte, error) { 69 m.ctrl.T.Helper() 70 ret := m.ctrl.Call(m, "GetIDs", arg0, arg1, arg2) 71 ret0, _ := ret[0].([][]byte) 72 ret1, _ := ret[1].(error) 73 return ret0, ret1 74 } 75 76 // GetIDs indicates an expected call of GetIDs. 77 func (mr *MockModuleMockRecorder) GetIDs(arg0, arg1, arg2 interface{}) *gomock.Call { 78 mr.mock.ctrl.T.Helper() 79 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetIDs", reflect.TypeOf((*MockModule)(nil).GetIDs), arg0, arg1, arg2) 80 } 81 82 // GetProofs mocks base method. 83 func (m *MockModule) GetProofs(arg0 context.Context, arg1 [][]byte, arg2 []byte) ([][]byte, error) { 84 m.ctrl.T.Helper() 85 ret := m.ctrl.Call(m, "GetProofs", arg0, arg1, arg2) 86 ret0, _ := ret[0].([][]byte) 87 ret1, _ := ret[1].(error) 88 return ret0, ret1 89 } 90 91 // GetProofs indicates an expected call of GetProofs. 92 func (mr *MockModuleMockRecorder) GetProofs(arg0, arg1, arg2 interface{}) *gomock.Call { 93 mr.mock.ctrl.T.Helper() 94 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetProofs", reflect.TypeOf((*MockModule)(nil).GetProofs), arg0, arg1, arg2) 95 } 96 97 // MaxBlobSize mocks base method. 98 func (m *MockModule) MaxBlobSize(arg0 context.Context) (uint64, error) { 99 m.ctrl.T.Helper() 100 ret := m.ctrl.Call(m, "MaxBlobSize", arg0) 101 ret0, _ := ret[0].(uint64) 102 ret1, _ := ret[1].(error) 103 return ret0, ret1 104 } 105 106 // MaxBlobSize indicates an expected call of MaxBlobSize. 107 func (mr *MockModuleMockRecorder) MaxBlobSize(arg0 interface{}) *gomock.Call { 108 mr.mock.ctrl.T.Helper() 109 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MaxBlobSize", reflect.TypeOf((*MockModule)(nil).MaxBlobSize), arg0) 110 } 111 112 // Submit mocks base method. 113 func (m *MockModule) Submit(arg0 context.Context, arg1 [][]byte, arg2 float64, arg3 []byte) ([][]byte, error) { 114 m.ctrl.T.Helper() 115 ret := m.ctrl.Call(m, "Submit", arg0, arg1, arg2, arg3) 116 ret0, _ := ret[0].([][]byte) 117 ret1, _ := ret[1].(error) 118 return ret0, ret1 119 } 120 121 // Submit indicates an expected call of Submit. 122 func (mr *MockModuleMockRecorder) Submit(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 123 mr.mock.ctrl.T.Helper() 124 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Submit", reflect.TypeOf((*MockModule)(nil).Submit), arg0, arg1, arg2, arg3) 125 } 126 127 // Validate mocks base method. 128 func (m *MockModule) Validate(arg0 context.Context, arg1, arg2 [][]byte, arg3 []byte) ([]bool, error) { 129 m.ctrl.T.Helper() 130 ret := m.ctrl.Call(m, "Validate", arg0, arg1, arg2, arg3) 131 ret0, _ := ret[0].([]bool) 132 ret1, _ := ret[1].(error) 133 return ret0, ret1 134 } 135 136 // Validate indicates an expected call of Validate. 137 func (mr *MockModuleMockRecorder) Validate(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 138 mr.mock.ctrl.T.Helper() 139 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Validate", reflect.TypeOf((*MockModule)(nil).Validate), arg0, arg1, arg2, arg3) 140 }