simplify mockgen usage for private interfaces (#3769)

This commit is contained in:
Marten Seemann 2023-04-19 16:57:00 +02:00 committed by GitHub
parent 379e7ec848
commit c9a2f79b1c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
35 changed files with 325 additions and 310 deletions

View file

@ -1,5 +1,5 @@
// Code generated by MockGen. DO NOT EDIT.
// Source: send_queue.go
// Source: github.com/quic-go/quic-go (interfaces: Sender)
// Package quic is a generated GoMock package.
package quic
@ -74,15 +74,15 @@ func (mr *MockSenderMockRecorder) Run() *gomock.Call {
}
// Send mocks base method.
func (m *MockSender) Send(p *packetBuffer) {
func (m *MockSender) Send(arg0 *packetBuffer) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Send", p)
m.ctrl.Call(m, "Send", arg0)
}
// Send indicates an expected call of Send.
func (mr *MockSenderMockRecorder) Send(p interface{}) *gomock.Call {
func (mr *MockSenderMockRecorder) Send(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Send", reflect.TypeOf((*MockSender)(nil).Send), p)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Send", reflect.TypeOf((*MockSender)(nil).Send), arg0)
}
// WouldBlock mocks base method.