blob: 3037798b2341e26b47be9a79ff65cfaaa343a5e9 [file] [log] [blame]
elinuxhenrikcce95ff2021-09-05 17:27:02 +02001// Code generated by mockery v1.0.0. DO NOT EDIT.
2
3package mocks
4
5import (
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
12type HTTPClient struct {
13 mock.Mock
14}
15
16// Do provides a mock function with given fields: _a0
17func (_m *HTTPClient) Do(_a0 *http.Request) (*http.Response, error) {
18 ret := _m.Called(_a0)
19
20 var r0 *http.Response
21 if rf, ok := ret.Get(0).(func(*http.Request) *http.Response); ok {
22 r0 = rf(_a0)
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(_a0)
32 } else {
33 r1 = ret.Error(1)
34 }
35
36 return r0, r1
37}
38
39// Get provides a mock function with given fields: url
40func (_m *HTTPClient) Get(url string) (*http.Response, error) {
41 ret := _m.Called(url)
42
43 var r0 *http.Response
44 if rf, ok := ret.Get(0).(func(string) *http.Response); ok {
45 r0 = rf(url)
46 } else {
47 if ret.Get(0) != nil {
48 r0 = ret.Get(0).(*http.Response)
49 }
50 }
51
52 var r1 error
53 if rf, ok := ret.Get(1).(func(string) error); ok {
54 r1 = rf(url)
55 } else {
56 r1 = ret.Error(1)
57 }
58
59 return r0, r1
60}