github.com/tumi8/quic-go@v0.37.4-tum/mock_stream_getter_test.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/tumi8/quic-go (interfaces: StreamGetter) 3 4 // Package quic is a generated GoMock package. 5 package quic 6 7 import ( 8 reflect "reflect" 9 10 gomock "github.com/golang/mock/gomock" 11 protocol "github.com/tumi8/quic-go/noninternal/protocol" 12 ) 13 14 // MockStreamGetter is a mock of StreamGetter interface. 15 type MockStreamGetter struct { 16 ctrl *gomock.Controller 17 recorder *MockStreamGetterMockRecorder 18 } 19 20 // MockStreamGetterMockRecorder is the mock recorder for MockStreamGetter. 21 type MockStreamGetterMockRecorder struct { 22 mock *MockStreamGetter 23 } 24 25 // NewMockStreamGetter creates a new mock instance. 26 func NewMockStreamGetter(ctrl *gomock.Controller) *MockStreamGetter { 27 mock := &MockStreamGetter{ctrl: ctrl} 28 mock.recorder = &MockStreamGetterMockRecorder{mock} 29 return mock 30 } 31 32 // EXPECT returns an object that allows the caller to indicate expected use. 33 func (m *MockStreamGetter) EXPECT() *MockStreamGetterMockRecorder { 34 return m.recorder 35 } 36 37 // GetOrOpenReceiveStream mocks base method. 38 func (m *MockStreamGetter) GetOrOpenReceiveStream(arg0 protocol.StreamID) (receiveStreamI, error) { 39 m.ctrl.T.Helper() 40 ret := m.ctrl.Call(m, "GetOrOpenReceiveStream", arg0) 41 ret0, _ := ret[0].(receiveStreamI) 42 ret1, _ := ret[1].(error) 43 return ret0, ret1 44 } 45 46 // GetOrOpenReceiveStream indicates an expected call of GetOrOpenReceiveStream. 47 func (mr *MockStreamGetterMockRecorder) GetOrOpenReceiveStream(arg0 interface{}) *gomock.Call { 48 mr.mock.ctrl.T.Helper() 49 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOrOpenReceiveStream", reflect.TypeOf((*MockStreamGetter)(nil).GetOrOpenReceiveStream), arg0) 50 } 51 52 // GetOrOpenSendStream mocks base method. 53 func (m *MockStreamGetter) GetOrOpenSendStream(arg0 protocol.StreamID) (sendStreamI, error) { 54 m.ctrl.T.Helper() 55 ret := m.ctrl.Call(m, "GetOrOpenSendStream", arg0) 56 ret0, _ := ret[0].(sendStreamI) 57 ret1, _ := ret[1].(error) 58 return ret0, ret1 59 } 60 61 // GetOrOpenSendStream indicates an expected call of GetOrOpenSendStream. 62 func (mr *MockStreamGetterMockRecorder) GetOrOpenSendStream(arg0 interface{}) *gomock.Call { 63 mr.mock.ctrl.T.Helper() 64 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOrOpenSendStream", reflect.TypeOf((*MockStreamGetter)(nil).GetOrOpenSendStream), arg0) 65 }