2 // ========================LICENSE_START=================================
5 // Copyright (C) 2021-2022: Nordix Foundation
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
11 // http://www.apache.org/licenses/LICENSE-2.0
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===================================
21 // Code generated by mockery v1.0.0. DO NOT EDIT.
28 mock "github.com/stretchr/testify/mock"
31 // HTTPClient is an autogenerated mock type for the HTTPClient type
32 type HTTPClient struct {
36 // Do provides a mock function with given fields: _a0
37 func (_m *HTTPClient) Do(_a0 *http.Request) (*http.Response, error) {
41 if rf, ok := ret.Get(0).(func(*http.Request) *http.Response); ok {
44 if ret.Get(0) != nil {
45 r0 = ret.Get(0).(*http.Response)
50 if rf, ok := ret.Get(1).(func(*http.Request) error); ok {
59 // Get provides a mock function with given fields: url
60 func (_m *HTTPClient) Get(url string) (*http.Response, error) {
64 if rf, ok := ret.Get(0).(func(string) *http.Response); ok {
67 if ret.Get(0) != nil {
68 r0 = ret.Get(0).(*http.Response)
73 if rf, ok := ret.Get(1).(func(string) error); ok {