github.com/tumi8/quic-go@v0.37.4-tum/mock_batch_conn_test.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: sys_conn_oob.go
     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  	ipv4 "golang.org/x/net/ipv4"
    12  )
    13  
    14  // MockBatchConn is a mock of batchConn interface.
    15  type MockBatchConn struct {
    16  	ctrl     *gomock.Controller
    17  	recorder *MockBatchConnMockRecorder
    18  }
    19  
    20  // MockBatchConnMockRecorder is the mock recorder for MockBatchConn.
    21  type MockBatchConnMockRecorder struct {
    22  	mock *MockBatchConn
    23  }
    24  
    25  // NewMockBatchConn creates a new mock instance.
    26  func NewMockBatchConn(ctrl *gomock.Controller) *MockBatchConn {
    27  	mock := &MockBatchConn{ctrl: ctrl}
    28  	mock.recorder = &MockBatchConnMockRecorder{mock}
    29  	return mock
    30  }
    31  
    32  // EXPECT returns an object that allows the caller to indicate expected use.
    33  func (m *MockBatchConn) EXPECT() *MockBatchConnMockRecorder {
    34  	return m.recorder
    35  }
    36  
    37  // ReadBatch mocks base method.
    38  func (m *MockBatchConn) ReadBatch(ms []ipv4.Message, flags int) (int, error) {
    39  	m.ctrl.T.Helper()
    40  	ret := m.ctrl.Call(m, "ReadBatch", ms, flags)
    41  	ret0, _ := ret[0].(int)
    42  	ret1, _ := ret[1].(error)
    43  	return ret0, ret1
    44  }
    45  
    46  // ReadBatch indicates an expected call of ReadBatch.
    47  func (mr *MockBatchConnMockRecorder) ReadBatch(ms, flags interface{}) *gomock.Call {
    48  	mr.mock.ctrl.T.Helper()
    49  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadBatch", reflect.TypeOf((*MockBatchConn)(nil).ReadBatch), ms, flags)
    50  }