github.com/MerlinKodo/quic-go@v0.39.2/mock_sender_test.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/MerlinKodo/quic-go (interfaces: Sender) 3 // 4 // Generated by this command: 5 // 6 // mockgen -build_flags=-tags=gomock -package quic -self_package github.com/MerlinKodo/quic-go -destination mock_sender_test.go github.com/MerlinKodo/quic-go Sender 7 // 8 // Package quic is a generated GoMock package. 9 package quic 10 11 import ( 12 reflect "reflect" 13 14 protocol "github.com/MerlinKodo/quic-go/internal/protocol" 15 gomock "go.uber.org/mock/gomock" 16 ) 17 18 // MockSender is a mock of Sender interface. 19 type MockSender struct { 20 ctrl *gomock.Controller 21 recorder *MockSenderMockRecorder 22 } 23 24 // MockSenderMockRecorder is the mock recorder for MockSender. 25 type MockSenderMockRecorder struct { 26 mock *MockSender 27 } 28 29 // NewMockSender creates a new mock instance. 30 func NewMockSender(ctrl *gomock.Controller) *MockSender { 31 mock := &MockSender{ctrl: ctrl} 32 mock.recorder = &MockSenderMockRecorder{mock} 33 return mock 34 } 35 36 // EXPECT returns an object that allows the caller to indicate expected use. 37 func (m *MockSender) EXPECT() *MockSenderMockRecorder { 38 return m.recorder 39 } 40 41 // Available mocks base method. 42 func (m *MockSender) Available() <-chan struct{} { 43 m.ctrl.T.Helper() 44 ret := m.ctrl.Call(m, "Available") 45 ret0, _ := ret[0].(<-chan struct{}) 46 return ret0 47 } 48 49 // Available indicates an expected call of Available. 50 func (mr *MockSenderMockRecorder) Available() *gomock.Call { 51 mr.mock.ctrl.T.Helper() 52 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Available", reflect.TypeOf((*MockSender)(nil).Available)) 53 } 54 55 // Close mocks base method. 56 func (m *MockSender) Close() { 57 m.ctrl.T.Helper() 58 m.ctrl.Call(m, "Close") 59 } 60 61 // Close indicates an expected call of Close. 62 func (mr *MockSenderMockRecorder) Close() *gomock.Call { 63 mr.mock.ctrl.T.Helper() 64 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockSender)(nil).Close)) 65 } 66 67 // Run mocks base method. 68 func (m *MockSender) Run() error { 69 m.ctrl.T.Helper() 70 ret := m.ctrl.Call(m, "Run") 71 ret0, _ := ret[0].(error) 72 return ret0 73 } 74 75 // Run indicates an expected call of Run. 76 func (mr *MockSenderMockRecorder) Run() *gomock.Call { 77 mr.mock.ctrl.T.Helper() 78 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Run", reflect.TypeOf((*MockSender)(nil).Run)) 79 } 80 81 // Send mocks base method. 82 func (m *MockSender) Send(arg0 *packetBuffer, arg1 uint16, arg2 protocol.ECN) { 83 m.ctrl.T.Helper() 84 m.ctrl.Call(m, "Send", arg0, arg1, arg2) 85 } 86 87 // Send indicates an expected call of Send. 88 func (mr *MockSenderMockRecorder) Send(arg0, arg1, arg2 any) *gomock.Call { 89 mr.mock.ctrl.T.Helper() 90 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Send", reflect.TypeOf((*MockSender)(nil).Send), arg0, arg1, arg2) 91 } 92 93 // WouldBlock mocks base method. 94 func (m *MockSender) WouldBlock() bool { 95 m.ctrl.T.Helper() 96 ret := m.ctrl.Call(m, "WouldBlock") 97 ret0, _ := ret[0].(bool) 98 return ret0 99 } 100 101 // WouldBlock indicates an expected call of WouldBlock. 102 func (mr *MockSenderMockRecorder) WouldBlock() *gomock.Call { 103 mr.mock.ctrl.T.Helper() 104 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WouldBlock", reflect.TypeOf((*MockSender)(nil).WouldBlock)) 105 }