mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-03 20:27:35 +03:00
update gomock to v1.5.0
This commit is contained in:
parent
972a08c40d
commit
383f1a6e89
44 changed files with 781 additions and 771 deletions
|
@ -10,48 +10,48 @@ import (
|
|||
gomock "github.com/golang/mock/gomock"
|
||||
)
|
||||
|
||||
// MockUnknownPacketHandler is a mock of UnknownPacketHandler interface
|
||||
// MockUnknownPacketHandler is a mock of UnknownPacketHandler interface.
|
||||
type MockUnknownPacketHandler struct {
|
||||
ctrl *gomock.Controller
|
||||
recorder *MockUnknownPacketHandlerMockRecorder
|
||||
}
|
||||
|
||||
// MockUnknownPacketHandlerMockRecorder is the mock recorder for MockUnknownPacketHandler
|
||||
// MockUnknownPacketHandlerMockRecorder is the mock recorder for MockUnknownPacketHandler.
|
||||
type MockUnknownPacketHandlerMockRecorder struct {
|
||||
mock *MockUnknownPacketHandler
|
||||
}
|
||||
|
||||
// NewMockUnknownPacketHandler creates a new mock instance
|
||||
// NewMockUnknownPacketHandler creates a new mock instance.
|
||||
func NewMockUnknownPacketHandler(ctrl *gomock.Controller) *MockUnknownPacketHandler {
|
||||
mock := &MockUnknownPacketHandler{ctrl: ctrl}
|
||||
mock.recorder = &MockUnknownPacketHandlerMockRecorder{mock}
|
||||
return mock
|
||||
}
|
||||
|
||||
// EXPECT returns an object that allows the caller to indicate expected use
|
||||
// EXPECT returns an object that allows the caller to indicate expected use.
|
||||
func (m *MockUnknownPacketHandler) EXPECT() *MockUnknownPacketHandlerMockRecorder {
|
||||
return m.recorder
|
||||
}
|
||||
|
||||
// handlePacket mocks base method
|
||||
// handlePacket mocks base method.
|
||||
func (m *MockUnknownPacketHandler) handlePacket(arg0 *receivedPacket) {
|
||||
m.ctrl.T.Helper()
|
||||
m.ctrl.Call(m, "handlePacket", arg0)
|
||||
}
|
||||
|
||||
// handlePacket indicates an expected call of handlePacket
|
||||
// handlePacket indicates an expected call of handlePacket.
|
||||
func (mr *MockUnknownPacketHandlerMockRecorder) handlePacket(arg0 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "handlePacket", reflect.TypeOf((*MockUnknownPacketHandler)(nil).handlePacket), arg0)
|
||||
}
|
||||
|
||||
// setCloseError mocks base method
|
||||
// setCloseError mocks base method.
|
||||
func (m *MockUnknownPacketHandler) setCloseError(arg0 error) {
|
||||
m.ctrl.T.Helper()
|
||||
m.ctrl.Call(m, "setCloseError", arg0)
|
||||
}
|
||||
|
||||
// setCloseError indicates an expected call of setCloseError
|
||||
// setCloseError indicates an expected call of setCloseError.
|
||||
func (mr *MockUnknownPacketHandlerMockRecorder) setCloseError(arg0 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "setCloseError", reflect.TypeOf((*MockUnknownPacketHandler)(nil).setCloseError), arg0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue