Release notes & Roll version after i-release 1.2.0 -> 1.3.0
[nonrtric/plt/sme.git] / capifcore / internal / restclient / mocks / HTTPClient.go
1 // Code generated by mockery v2.20.0. DO NOT EDIT.
2
3 package mocks
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: _a0
17 func (_m *HTTPClient) Do(_a0 *http.Request) (*http.Response, error) {
18         ret := _m.Called(_a0)
19
20         var r0 *http.Response
21         var r1 error
22         if rf, ok := ret.Get(0).(func(*http.Request) (*http.Response, error)); ok {
23                 return rf(_a0)
24         }
25         if rf, ok := ret.Get(0).(func(*http.Request) *http.Response); ok {
26                 r0 = rf(_a0)
27         } else {
28                 if ret.Get(0) != nil {
29                         r0 = ret.Get(0).(*http.Response)
30                 }
31         }
32
33         if rf, ok := ret.Get(1).(func(*http.Request) error); ok {
34                 r1 = rf(_a0)
35         } else {
36                 r1 = ret.Error(1)
37         }
38
39         return r0, r1
40 }
41
42 // Get provides a mock function with given fields: url
43 func (_m *HTTPClient) Get(url string) (*http.Response, error) {
44         ret := _m.Called(url)
45
46         var r0 *http.Response
47         var r1 error
48         if rf, ok := ret.Get(0).(func(string) (*http.Response, error)); ok {
49                 return rf(url)
50         }
51         if rf, ok := ret.Get(0).(func(string) *http.Response); ok {
52                 r0 = rf(url)
53         } else {
54                 if ret.Get(0) != nil {
55                         r0 = ret.Get(0).(*http.Response)
56                 }
57         }
58
59         if rf, ok := ret.Get(1).(func(string) error); ok {
60                 r1 = rf(url)
61         } else {
62                 r1 = ret.Error(1)
63         }
64
65         return r0, r1
66 }
67
68 type mockConstructorTestingTNewHTTPClient interface {
69         mock.TestingT
70         Cleanup(func())
71 }
72
73 // NewHTTPClient creates a new instance of HTTPClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
74 func NewHTTPClient(t mockConstructorTestingTNewHTTPClient) *HTTPClient {
75         mock := &HTTPClient{}
76         mock.Mock.Test(t)
77
78         t.Cleanup(func() { mock.AssertExpectations(t) })
79
80         return mock
81 }