forked from quic-go/quic-go
121 lines
3.9 KiB
Go
121 lines
3.9 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: git.geeks-team.ru/gr1ffon/quic-go/http3 (interfaces: TestClientConnInterface)
|
|
//
|
|
// Generated by this command:
|
|
//
|
|
// mockgen -typed -build_flags=-tags=gomock -mock_names=TestClientConnInterface=MockClientConn -package http3 -destination mock_clientconn_test.go git.geeks-team.ru/gr1ffon/quic-go/http3 TestClientConnInterface
|
|
//
|
|
|
|
// Package http3 is a generated GoMock package.
|
|
package http3
|
|
|
|
import (
|
|
context "context"
|
|
http "net/http"
|
|
reflect "reflect"
|
|
|
|
gomock "go.uber.org/mock/gomock"
|
|
)
|
|
|
|
// MockClientConn is a mock of TestClientConnInterface interface.
|
|
type MockClientConn struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockClientConnMockRecorder
|
|
isgomock struct{}
|
|
}
|
|
|
|
// MockClientConnMockRecorder is the mock recorder for MockClientConn.
|
|
type MockClientConnMockRecorder struct {
|
|
mock *MockClientConn
|
|
}
|
|
|
|
// NewMockClientConn creates a new mock instance.
|
|
func NewMockClientConn(ctrl *gomock.Controller) *MockClientConn {
|
|
mock := &MockClientConn{ctrl: ctrl}
|
|
mock.recorder = &MockClientConnMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockClientConn) EXPECT() *MockClientConnMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// OpenRequestStream mocks base method.
|
|
func (m *MockClientConn) OpenRequestStream(arg0 context.Context) (*RequestStream, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "OpenRequestStream", arg0)
|
|
ret0, _ := ret[0].(*RequestStream)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// OpenRequestStream indicates an expected call of OpenRequestStream.
|
|
func (mr *MockClientConnMockRecorder) OpenRequestStream(arg0 any) *MockClientConnOpenRequestStreamCall {
|
|
mr.mock.ctrl.T.Helper()
|
|
call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OpenRequestStream", reflect.TypeOf((*MockClientConn)(nil).OpenRequestStream), arg0)
|
|
return &MockClientConnOpenRequestStreamCall{Call: call}
|
|
}
|
|
|
|
// MockClientConnOpenRequestStreamCall wrap *gomock.Call
|
|
type MockClientConnOpenRequestStreamCall struct {
|
|
*gomock.Call
|
|
}
|
|
|
|
// Return rewrite *gomock.Call.Return
|
|
func (c *MockClientConnOpenRequestStreamCall) Return(arg0 *RequestStream, arg1 error) *MockClientConnOpenRequestStreamCall {
|
|
c.Call = c.Call.Return(arg0, arg1)
|
|
return c
|
|
}
|
|
|
|
// Do rewrite *gomock.Call.Do
|
|
func (c *MockClientConnOpenRequestStreamCall) Do(f func(context.Context) (*RequestStream, error)) *MockClientConnOpenRequestStreamCall {
|
|
c.Call = c.Call.Do(f)
|
|
return c
|
|
}
|
|
|
|
// DoAndReturn rewrite *gomock.Call.DoAndReturn
|
|
func (c *MockClientConnOpenRequestStreamCall) DoAndReturn(f func(context.Context) (*RequestStream, error)) *MockClientConnOpenRequestStreamCall {
|
|
c.Call = c.Call.DoAndReturn(f)
|
|
return c
|
|
}
|
|
|
|
// RoundTrip mocks base method.
|
|
func (m *MockClientConn) RoundTrip(arg0 *http.Request) (*http.Response, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "RoundTrip", arg0)
|
|
ret0, _ := ret[0].(*http.Response)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// RoundTrip indicates an expected call of RoundTrip.
|
|
func (mr *MockClientConnMockRecorder) RoundTrip(arg0 any) *MockClientConnRoundTripCall {
|
|
mr.mock.ctrl.T.Helper()
|
|
call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RoundTrip", reflect.TypeOf((*MockClientConn)(nil).RoundTrip), arg0)
|
|
return &MockClientConnRoundTripCall{Call: call}
|
|
}
|
|
|
|
// MockClientConnRoundTripCall wrap *gomock.Call
|
|
type MockClientConnRoundTripCall struct {
|
|
*gomock.Call
|
|
}
|
|
|
|
// Return rewrite *gomock.Call.Return
|
|
func (c *MockClientConnRoundTripCall) Return(arg0 *http.Response, arg1 error) *MockClientConnRoundTripCall {
|
|
c.Call = c.Call.Return(arg0, arg1)
|
|
return c
|
|
}
|
|
|
|
// Do rewrite *gomock.Call.Do
|
|
func (c *MockClientConnRoundTripCall) Do(f func(*http.Request) (*http.Response, error)) *MockClientConnRoundTripCall {
|
|
c.Call = c.Call.Do(f)
|
|
return c
|
|
}
|
|
|
|
// DoAndReturn rewrite *gomock.Call.DoAndReturn
|
|
func (c *MockClientConnRoundTripCall) DoAndReturn(f func(*http.Request) (*http.Response, error)) *MockClientConnRoundTripCall {
|
|
c.Call = c.Call.DoAndReturn(f)
|
|
return c
|
|
}
|