mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-03 20:27:35 +03:00
simplify mockgen usage for private interfaces (#3769)
This commit is contained in:
parent
379e7ec848
commit
c9a2f79b1c
35 changed files with 325 additions and 310 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue