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

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: net (interfaces: PacketConn)
     3  
     4  // Package quic is a generated GoMock package.
     5  package quic
     6  
     7  import (
     8  	net "net"
     9  	reflect "reflect"
    10  	time "time"
    11  
    12  	gomock "github.com/golang/mock/gomock"
    13  )
    14  
    15  // MockPacketConn is a mock of PacketConn interface.
    16  type MockPacketConn struct {
    17  	ctrl     *gomock.Controller
    18  	recorder *MockPacketConnMockRecorder
    19  }
    20  
    21  // MockPacketConnMockRecorder is the mock recorder for MockPacketConn.
    22  type MockPacketConnMockRecorder struct {
    23  	mock *MockPacketConn
    24  }
    25  
    26  // NewMockPacketConn creates a new mock instance.
    27  func NewMockPacketConn(ctrl *gomock.Controller) *MockPacketConn {
    28  	mock := &MockPacketConn{ctrl: ctrl}
    29  	mock.recorder = &MockPacketConnMockRecorder{mock}
    30  	return mock
    31  }
    32  
    33  // EXPECT returns an object that allows the caller to indicate expected use.
    34  func (m *MockPacketConn) EXPECT() *MockPacketConnMockRecorder {
    35  	return m.recorder
    36  }
    37  
    38  // Close mocks base method.
    39  func (m *MockPacketConn) Close() error {
    40  	m.ctrl.T.Helper()
    41  	ret := m.ctrl.Call(m, "Close")
    42  	ret0, _ := ret[0].(error)
    43  	return ret0
    44  }
    45  
    46  // Close indicates an expected call of Close.
    47  func (mr *MockPacketConnMockRecorder) Close() *gomock.Call {
    48  	mr.mock.ctrl.T.Helper()
    49  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockPacketConn)(nil).Close))
    50  }
    51  
    52  // LocalAddr mocks base method.
    53  func (m *MockPacketConn) LocalAddr() net.Addr {
    54  	m.ctrl.T.Helper()
    55  	ret := m.ctrl.Call(m, "LocalAddr")
    56  	ret0, _ := ret[0].(net.Addr)
    57  	return ret0
    58  }
    59  
    60  // LocalAddr indicates an expected call of LocalAddr.
    61  func (mr *MockPacketConnMockRecorder) LocalAddr() *gomock.Call {
    62  	mr.mock.ctrl.T.Helper()
    63  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LocalAddr", reflect.TypeOf((*MockPacketConn)(nil).LocalAddr))
    64  }
    65  
    66  // ReadFrom mocks base method.
    67  func (m *MockPacketConn) ReadFrom(arg0 []byte) (int, net.Addr, error) {
    68  	m.ctrl.T.Helper()
    69  	ret := m.ctrl.Call(m, "ReadFrom", arg0)
    70  	ret0, _ := ret[0].(int)
    71  	ret1, _ := ret[1].(net.Addr)
    72  	ret2, _ := ret[2].(error)
    73  	return ret0, ret1, ret2
    74  }
    75  
    76  // ReadFrom indicates an expected call of ReadFrom.
    77  func (mr *MockPacketConnMockRecorder) ReadFrom(arg0 interface{}) *gomock.Call {
    78  	mr.mock.ctrl.T.Helper()
    79  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadFrom", reflect.TypeOf((*MockPacketConn)(nil).ReadFrom), arg0)
    80  }
    81  
    82  // SetDeadline mocks base method.
    83  func (m *MockPacketConn) SetDeadline(arg0 time.Time) error {
    84  	m.ctrl.T.Helper()
    85  	ret := m.ctrl.Call(m, "SetDeadline", arg0)
    86  	ret0, _ := ret[0].(error)
    87  	return ret0
    88  }
    89  
    90  // SetDeadline indicates an expected call of SetDeadline.
    91  func (mr *MockPacketConnMockRecorder) SetDeadline(arg0 interface{}) *gomock.Call {
    92  	mr.mock.ctrl.T.Helper()
    93  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetDeadline", reflect.TypeOf((*MockPacketConn)(nil).SetDeadline), arg0)
    94  }
    95  
    96  // SetReadDeadline mocks base method.
    97  func (m *MockPacketConn) SetReadDeadline(arg0 time.Time) error {
    98  	m.ctrl.T.Helper()
    99  	ret := m.ctrl.Call(m, "SetReadDeadline", arg0)
   100  	ret0, _ := ret[0].(error)
   101  	return ret0
   102  }
   103  
   104  // SetReadDeadline indicates an expected call of SetReadDeadline.
   105  func (mr *MockPacketConnMockRecorder) SetReadDeadline(arg0 interface{}) *gomock.Call {
   106  	mr.mock.ctrl.T.Helper()
   107  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetReadDeadline", reflect.TypeOf((*MockPacketConn)(nil).SetReadDeadline), arg0)
   108  }
   109  
   110  // SetWriteDeadline mocks base method.
   111  func (m *MockPacketConn) SetWriteDeadline(arg0 time.Time) error {
   112  	m.ctrl.T.Helper()
   113  	ret := m.ctrl.Call(m, "SetWriteDeadline", arg0)
   114  	ret0, _ := ret[0].(error)
   115  	return ret0
   116  }
   117  
   118  // SetWriteDeadline indicates an expected call of SetWriteDeadline.
   119  func (mr *MockPacketConnMockRecorder) SetWriteDeadline(arg0 interface{}) *gomock.Call {
   120  	mr.mock.ctrl.T.Helper()
   121  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetWriteDeadline", reflect.TypeOf((*MockPacketConn)(nil).SetWriteDeadline), arg0)
   122  }
   123  
   124  // WriteTo mocks base method.
   125  func (m *MockPacketConn) WriteTo(arg0 []byte, arg1 net.Addr) (int, error) {
   126  	m.ctrl.T.Helper()
   127  	ret := m.ctrl.Call(m, "WriteTo", arg0, arg1)
   128  	ret0, _ := ret[0].(int)
   129  	ret1, _ := ret[1].(error)
   130  	return ret0, ret1
   131  }
   132  
   133  // WriteTo indicates an expected call of WriteTo.
   134  func (mr *MockPacketConnMockRecorder) WriteTo(arg0, arg1 interface{}) *gomock.Call {
   135  	mr.mock.ctrl.T.Helper()
   136  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteTo", reflect.TypeOf((*MockPacketConn)(nil).WriteTo), arg0, arg1)
   137  }