mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-23 04:03:49 +00:00
fc9dae1783
Corresponds to the client fix in this PR description - https://github.com/ledgerwatch/erigon/pull/9096#issue-2058506765
63 lines
1.9 KiB
Go
63 lines
1.9 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: github.com/ledgerwatch/erigon/consensus/bor/heimdall (interfaces: HttpClient)
|
|
|
|
// Package mock is a generated GoMock package.
|
|
package mock
|
|
|
|
import (
|
|
http "net/http"
|
|
reflect "reflect"
|
|
|
|
gomock "github.com/golang/mock/gomock"
|
|
)
|
|
|
|
// MockHttpClient is a mock of HttpClient interface.
|
|
type MockHttpClient struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockHttpClientMockRecorder
|
|
}
|
|
|
|
// MockHttpClientMockRecorder is the mock recorder for MockHttpClient.
|
|
type MockHttpClientMockRecorder struct {
|
|
mock *MockHttpClient
|
|
}
|
|
|
|
// NewMockHttpClient creates a new mock instance.
|
|
func NewMockHttpClient(ctrl *gomock.Controller) *MockHttpClient {
|
|
mock := &MockHttpClient{ctrl: ctrl}
|
|
mock.recorder = &MockHttpClientMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockHttpClient) EXPECT() *MockHttpClientMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// CloseIdleConnections mocks base method.
|
|
func (m *MockHttpClient) CloseIdleConnections() {
|
|
m.ctrl.T.Helper()
|
|
m.ctrl.Call(m, "CloseIdleConnections")
|
|
}
|
|
|
|
// CloseIdleConnections indicates an expected call of CloseIdleConnections.
|
|
func (mr *MockHttpClientMockRecorder) CloseIdleConnections() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CloseIdleConnections", reflect.TypeOf((*MockHttpClient)(nil).CloseIdleConnections))
|
|
}
|
|
|
|
// Do mocks base method.
|
|
func (m *MockHttpClient) Do(arg0 *http.Request) (*http.Response, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Do", arg0)
|
|
ret0, _ := ret[0].(*http.Response)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// Do indicates an expected call of Do.
|
|
func (mr *MockHttpClientMockRecorder) Do(arg0 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Do", reflect.TypeOf((*MockHttpClient)(nil).Do), arg0)
|
|
}
|