github.com/kyma-project/kyma/components/asset-store-controller-manager@v0.0.0-20191203152857-3792b5df17c5/internal/assethook/automock/http_client.go (about) 1 // Code generated by mockery v1.0.0. DO NOT EDIT. 2 3 package automock 4 5 import ( 6 http "net/http" 7 8 mock "github.com/stretchr/testify/mock" 9 ) 10 11 // HttpClient is an autogenerated mock type for the HttpClient type 12 type HttpClient struct { 13 mock.Mock 14 } 15 16 // Do provides a mock function with given fields: req 17 func (_m *HttpClient) Do(req *http.Request) (*http.Response, error) { 18 ret := _m.Called(req) 19 20 var r0 *http.Response 21 if rf, ok := ret.Get(0).(func(*http.Request) *http.Response); ok { 22 r0 = rf(req) 23 } else { 24 if ret.Get(0) != nil { 25 r0 = ret.Get(0).(*http.Response) 26 } 27 } 28 29 var r1 error 30 if rf, ok := ret.Get(1).(func(*http.Request) error); ok { 31 r1 = rf(req) 32 } else { 33 r1 = ret.Error(1) 34 } 35 36 return r0, r1 37 }