github.com/MerlinKodo/quic-go@v0.39.2/mock_batch_conn_test.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: sys_conn_oob.go 3 // 4 // Generated by this command: 5 // 6 // mockgen -package quic -self_package github.com/MerlinKodo/quic-go -source sys_conn_oob.go -destination mock_batch_conn_test.go -mock_names batchConn=MockBatchConn 7 // 8 // Package quic is a generated GoMock package. 9 package quic 10 11 import ( 12 reflect "reflect" 13 14 gomock "go.uber.org/mock/gomock" 15 ipv4 "golang.org/x/net/ipv4" 16 ) 17 18 // MockBatchConn is a mock of batchConn interface. 19 type MockBatchConn struct { 20 ctrl *gomock.Controller 21 recorder *MockBatchConnMockRecorder 22 } 23 24 // MockBatchConnMockRecorder is the mock recorder for MockBatchConn. 25 type MockBatchConnMockRecorder struct { 26 mock *MockBatchConn 27 } 28 29 // NewMockBatchConn creates a new mock instance. 30 func NewMockBatchConn(ctrl *gomock.Controller) *MockBatchConn { 31 mock := &MockBatchConn{ctrl: ctrl} 32 mock.recorder = &MockBatchConnMockRecorder{mock} 33 return mock 34 } 35 36 // EXPECT returns an object that allows the caller to indicate expected use. 37 func (m *MockBatchConn) EXPECT() *MockBatchConnMockRecorder { 38 return m.recorder 39 } 40 41 // ReadBatch mocks base method. 42 func (m *MockBatchConn) ReadBatch(ms []ipv4.Message, flags int) (int, error) { 43 m.ctrl.T.Helper() 44 ret := m.ctrl.Call(m, "ReadBatch", ms, flags) 45 ret0, _ := ret[0].(int) 46 ret1, _ := ret[1].(error) 47 return ret0, ret1 48 } 49 50 // ReadBatch indicates an expected call of ReadBatch. 51 func (mr *MockBatchConnMockRecorder) ReadBatch(ms, flags any) *gomock.Call { 52 mr.mock.ctrl.T.Helper() 53 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadBatch", reflect.TypeOf((*MockBatchConn)(nil).ReadBatch), ms, flags) 54 }