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: crypto_stream.go
// Source: github.com/quic-go/quic-go (interfaces: CryptoStream)
// Package quic is a generated GoMock package.
package quic
@ -106,16 +106,16 @@ func (mr *MockCryptoStreamMockRecorder) PopCryptoFrame(arg0 interface{}) *gomock
}
// Write mocks base method.
func (m *MockCryptoStream) Write(p []byte) (int, error) {
func (m *MockCryptoStream) Write(arg0 []byte) (int, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Write", p)
ret := m.ctrl.Call(m, "Write", arg0)
ret0, _ := ret[0].(int)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Write indicates an expected call of Write.
func (mr *MockCryptoStreamMockRecorder) Write(p interface{}) *gomock.Call {
func (mr *MockCryptoStreamMockRecorder) Write(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Write", reflect.TypeOf((*MockCryptoStream)(nil).Write), p)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Write", reflect.TypeOf((*MockCryptoStream)(nil).Write), arg0)
}