github.com/danielpfeifer02/quic-go-prio-packs@v0.41.0-28/mock_stream_getter_test.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/danielpfeifer02/quic-go-prio-packs (interfaces: StreamGetter) 3 // 4 // Generated by this command: 5 // 6 // mockgen -typed -build_flags=-tags=gomock -package quic -self_package github.com/danielpfeifer02/quic-go-prio-packs -destination mock_stream_getter_test.go github.com/danielpfeifer02/quic-go-prio-packs StreamGetter 7 // 8 // Package quic is a generated GoMock package. 9 package quic 10 11 import ( 12 reflect "reflect" 13 14 protocol "github.com/danielpfeifer02/quic-go-prio-packs/internal/protocol" 15 gomock "go.uber.org/mock/gomock" 16 ) 17 18 // MockStreamGetter is a mock of StreamGetter interface. 19 type MockStreamGetter struct { 20 ctrl *gomock.Controller 21 recorder *MockStreamGetterMockRecorder 22 } 23 24 // MockStreamGetterMockRecorder is the mock recorder for MockStreamGetter. 25 type MockStreamGetterMockRecorder struct { 26 mock *MockStreamGetter 27 } 28 29 // NewMockStreamGetter creates a new mock instance. 30 func NewMockStreamGetter(ctrl *gomock.Controller) *MockStreamGetter { 31 mock := &MockStreamGetter{ctrl: ctrl} 32 mock.recorder = &MockStreamGetterMockRecorder{mock} 33 return mock 34 } 35 36 // EXPECT returns an object that allows the caller to indicate expected use. 37 func (m *MockStreamGetter) EXPECT() *MockStreamGetterMockRecorder { 38 return m.recorder 39 } 40 41 // GetOrOpenReceiveStream mocks base method. 42 func (m *MockStreamGetter) GetOrOpenReceiveStream(arg0 protocol.StreamID) (receiveStreamI, error) { 43 m.ctrl.T.Helper() 44 ret := m.ctrl.Call(m, "GetOrOpenReceiveStream", arg0) 45 ret0, _ := ret[0].(receiveStreamI) 46 ret1, _ := ret[1].(error) 47 return ret0, ret1 48 } 49 50 // GetOrOpenReceiveStream indicates an expected call of GetOrOpenReceiveStream. 51 func (mr *MockStreamGetterMockRecorder) GetOrOpenReceiveStream(arg0 any) *StreamGetterGetOrOpenReceiveStreamCall { 52 mr.mock.ctrl.T.Helper() 53 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOrOpenReceiveStream", reflect.TypeOf((*MockStreamGetter)(nil).GetOrOpenReceiveStream), arg0) 54 return &StreamGetterGetOrOpenReceiveStreamCall{Call: call} 55 } 56 57 // StreamGetterGetOrOpenReceiveStreamCall wrap *gomock.Call 58 type StreamGetterGetOrOpenReceiveStreamCall struct { 59 *gomock.Call 60 } 61 62 // Return rewrite *gomock.Call.Return 63 func (c *StreamGetterGetOrOpenReceiveStreamCall) Return(arg0 receiveStreamI, arg1 error) *StreamGetterGetOrOpenReceiveStreamCall { 64 c.Call = c.Call.Return(arg0, arg1) 65 return c 66 } 67 68 // Do rewrite *gomock.Call.Do 69 func (c *StreamGetterGetOrOpenReceiveStreamCall) Do(f func(protocol.StreamID) (receiveStreamI, error)) *StreamGetterGetOrOpenReceiveStreamCall { 70 c.Call = c.Call.Do(f) 71 return c 72 } 73 74 // DoAndReturn rewrite *gomock.Call.DoAndReturn 75 func (c *StreamGetterGetOrOpenReceiveStreamCall) DoAndReturn(f func(protocol.StreamID) (receiveStreamI, error)) *StreamGetterGetOrOpenReceiveStreamCall { 76 c.Call = c.Call.DoAndReturn(f) 77 return c 78 } 79 80 // GetOrOpenSendStream mocks base method. 81 func (m *MockStreamGetter) GetOrOpenSendStream(arg0 protocol.StreamID) (sendStreamI, error) { 82 m.ctrl.T.Helper() 83 ret := m.ctrl.Call(m, "GetOrOpenSendStream", arg0) 84 ret0, _ := ret[0].(sendStreamI) 85 ret1, _ := ret[1].(error) 86 return ret0, ret1 87 } 88 89 // GetOrOpenSendStream indicates an expected call of GetOrOpenSendStream. 90 func (mr *MockStreamGetterMockRecorder) GetOrOpenSendStream(arg0 any) *StreamGetterGetOrOpenSendStreamCall { 91 mr.mock.ctrl.T.Helper() 92 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOrOpenSendStream", reflect.TypeOf((*MockStreamGetter)(nil).GetOrOpenSendStream), arg0) 93 return &StreamGetterGetOrOpenSendStreamCall{Call: call} 94 } 95 96 // StreamGetterGetOrOpenSendStreamCall wrap *gomock.Call 97 type StreamGetterGetOrOpenSendStreamCall struct { 98 *gomock.Call 99 } 100 101 // Return rewrite *gomock.Call.Return 102 func (c *StreamGetterGetOrOpenSendStreamCall) Return(arg0 sendStreamI, arg1 error) *StreamGetterGetOrOpenSendStreamCall { 103 c.Call = c.Call.Return(arg0, arg1) 104 return c 105 } 106 107 // Do rewrite *gomock.Call.Do 108 func (c *StreamGetterGetOrOpenSendStreamCall) Do(f func(protocol.StreamID) (sendStreamI, error)) *StreamGetterGetOrOpenSendStreamCall { 109 c.Call = c.Call.Do(f) 110 return c 111 } 112 113 // DoAndReturn rewrite *gomock.Call.DoAndReturn 114 func (c *StreamGetterGetOrOpenSendStreamCall) DoAndReturn(f func(protocol.StreamID) (sendStreamI, error)) *StreamGetterGetOrOpenSendStreamCall { 115 c.Call = c.Call.DoAndReturn(f) 116 return c 117 }