c65bac639e6496c3326636c65a32adc3759f48ee
[nonrtric/rapp/orufhrecovery.git] / goversion / mocks / HTTPClient.go
1 // -
2 //   ========================LICENSE_START=================================
3 //   O-RAN-SC
4 //   %%
5 //   Copyright (C) 2021-2022: Nordix Foundation
6 //   %%
7 //   Licensed under the Apache License, Version 2.0 (the "License");
8 //   you may not use this file except in compliance with the License.
9 //   You may obtain a copy of the License at
10 //
11 //        http://www.apache.org/licenses/LICENSE-2.0
12 //
13 //   Unless required by applicable law or agreed to in writing, software
14 //   distributed under the License is distributed on an "AS IS" BASIS,
15 //   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 //   See the License for the specific language governing permissions and
17 //   limitations under the License.
18 //   ========================LICENSE_END===================================
19 //
20
21 // Code generated by mockery v1.0.0. DO NOT EDIT.
22
23 package mocks
24
25 import (
26         http "net/http"
27
28         mock "github.com/stretchr/testify/mock"
29 )
30
31 // HTTPClient is an autogenerated mock type for the HTTPClient type
32 type HTTPClient struct {
33         mock.Mock
34 }
35
36 // Do provides a mock function with given fields: _a0
37 func (_m *HTTPClient) Do(_a0 *http.Request) (*http.Response, error) {
38         ret := _m.Called(_a0)
39
40         var r0 *http.Response
41         if rf, ok := ret.Get(0).(func(*http.Request) *http.Response); ok {
42                 r0 = rf(_a0)
43         } else {
44                 if ret.Get(0) != nil {
45                         r0 = ret.Get(0).(*http.Response)
46                 }
47         }
48
49         var r1 error
50         if rf, ok := ret.Get(1).(func(*http.Request) error); ok {
51                 r1 = rf(_a0)
52         } else {
53                 r1 = ret.Error(1)
54         }
55
56         return r0, r1
57 }
58
59 // Get provides a mock function with given fields: url
60 func (_m *HTTPClient) Get(url string) (*http.Response, error) {
61         ret := _m.Called(url)
62
63         var r0 *http.Response
64         if rf, ok := ret.Get(0).(func(string) *http.Response); ok {
65                 r0 = rf(url)
66         } else {
67                 if ret.Get(0) != nil {
68                         r0 = ret.Get(0).(*http.Response)
69                 }
70         }
71
72         var r1 error
73         if rf, ok := ret.Get(1).(func(string) error); ok {
74                 r1 = rf(url)
75         } else {
76                 r1 = ret.Error(1)
77         }
78
79         return r0, r1
80 }