github.com/iotexproject/iotex-core@v1.14.1-rc1/test/mock/mock_apiserver/mock_apiserver.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: ./api/apitestserver.go 3 4 // Package mock_apiserver is a generated GoMock package. 5 package mock_apiserver 6 7 import ( 8 context "context" 9 reflect "reflect" 10 11 gomock "github.com/golang/mock/gomock" 12 iotexapi "github.com/iotexproject/iotex-proto/golang/iotexapi" 13 metadata "google.golang.org/grpc/metadata" 14 ) 15 16 // MockStreamBlocksServer is a mock of StreamBlocksServer interface. 17 type MockStreamBlocksServer struct { 18 ctrl *gomock.Controller 19 recorder *MockStreamBlocksServerMockRecorder 20 } 21 22 // MockStreamBlocksServerMockRecorder is the mock recorder for MockStreamBlocksServer. 23 type MockStreamBlocksServerMockRecorder struct { 24 mock *MockStreamBlocksServer 25 } 26 27 // NewMockStreamBlocksServer creates a new mock instance. 28 func NewMockStreamBlocksServer(ctrl *gomock.Controller) *MockStreamBlocksServer { 29 mock := &MockStreamBlocksServer{ctrl: ctrl} 30 mock.recorder = &MockStreamBlocksServerMockRecorder{mock} 31 return mock 32 } 33 34 // EXPECT returns an object that allows the caller to indicate expected use. 35 func (m *MockStreamBlocksServer) EXPECT() *MockStreamBlocksServerMockRecorder { 36 return m.recorder 37 } 38 39 // Context mocks base method. 40 func (m *MockStreamBlocksServer) Context() context.Context { 41 m.ctrl.T.Helper() 42 ret := m.ctrl.Call(m, "Context") 43 ret0, _ := ret[0].(context.Context) 44 return ret0 45 } 46 47 // Context indicates an expected call of Context. 48 func (mr *MockStreamBlocksServerMockRecorder) Context() *gomock.Call { 49 mr.mock.ctrl.T.Helper() 50 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Context", reflect.TypeOf((*MockStreamBlocksServer)(nil).Context)) 51 } 52 53 // RecvMsg mocks base method. 54 func (m_2 *MockStreamBlocksServer) RecvMsg(m interface{}) error { 55 m_2.ctrl.T.Helper() 56 ret := m_2.ctrl.Call(m_2, "RecvMsg", m) 57 ret0, _ := ret[0].(error) 58 return ret0 59 } 60 61 // RecvMsg indicates an expected call of RecvMsg. 62 func (mr *MockStreamBlocksServerMockRecorder) RecvMsg(m interface{}) *gomock.Call { 63 mr.mock.ctrl.T.Helper() 64 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RecvMsg", reflect.TypeOf((*MockStreamBlocksServer)(nil).RecvMsg), m) 65 } 66 67 // Send mocks base method. 68 func (m *MockStreamBlocksServer) Send(arg0 *iotexapi.StreamBlocksResponse) error { 69 m.ctrl.T.Helper() 70 ret := m.ctrl.Call(m, "Send", arg0) 71 ret0, _ := ret[0].(error) 72 return ret0 73 } 74 75 // Send indicates an expected call of Send. 76 func (mr *MockStreamBlocksServerMockRecorder) Send(arg0 interface{}) *gomock.Call { 77 mr.mock.ctrl.T.Helper() 78 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Send", reflect.TypeOf((*MockStreamBlocksServer)(nil).Send), arg0) 79 } 80 81 // SendHeader mocks base method. 82 func (m *MockStreamBlocksServer) SendHeader(arg0 metadata.MD) error { 83 m.ctrl.T.Helper() 84 ret := m.ctrl.Call(m, "SendHeader", arg0) 85 ret0, _ := ret[0].(error) 86 return ret0 87 } 88 89 // SendHeader indicates an expected call of SendHeader. 90 func (mr *MockStreamBlocksServerMockRecorder) SendHeader(arg0 interface{}) *gomock.Call { 91 mr.mock.ctrl.T.Helper() 92 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendHeader", reflect.TypeOf((*MockStreamBlocksServer)(nil).SendHeader), arg0) 93 } 94 95 // SendMsg mocks base method. 96 func (m_2 *MockStreamBlocksServer) SendMsg(m interface{}) error { 97 m_2.ctrl.T.Helper() 98 ret := m_2.ctrl.Call(m_2, "SendMsg", m) 99 ret0, _ := ret[0].(error) 100 return ret0 101 } 102 103 // SendMsg indicates an expected call of SendMsg. 104 func (mr *MockStreamBlocksServerMockRecorder) SendMsg(m interface{}) *gomock.Call { 105 mr.mock.ctrl.T.Helper() 106 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMsg", reflect.TypeOf((*MockStreamBlocksServer)(nil).SendMsg), m) 107 } 108 109 // SetHeader mocks base method. 110 func (m *MockStreamBlocksServer) SetHeader(arg0 metadata.MD) error { 111 m.ctrl.T.Helper() 112 ret := m.ctrl.Call(m, "SetHeader", arg0) 113 ret0, _ := ret[0].(error) 114 return ret0 115 } 116 117 // SetHeader indicates an expected call of SetHeader. 118 func (mr *MockStreamBlocksServerMockRecorder) SetHeader(arg0 interface{}) *gomock.Call { 119 mr.mock.ctrl.T.Helper() 120 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetHeader", reflect.TypeOf((*MockStreamBlocksServer)(nil).SetHeader), arg0) 121 } 122 123 // SetTrailer mocks base method. 124 func (m *MockStreamBlocksServer) SetTrailer(arg0 metadata.MD) { 125 m.ctrl.T.Helper() 126 m.ctrl.Call(m, "SetTrailer", arg0) 127 } 128 129 // SetTrailer indicates an expected call of SetTrailer. 130 func (mr *MockStreamBlocksServerMockRecorder) SetTrailer(arg0 interface{}) *gomock.Call { 131 mr.mock.ctrl.T.Helper() 132 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetTrailer", reflect.TypeOf((*MockStreamBlocksServer)(nil).SetTrailer), arg0) 133 }