| 1 | // Code generated by mockery; DO NOT EDIT. |
| 2 | // github.com/vektra/mockery |
| 3 | // template: testify |
| 4 | |
| 5 | package mocksscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/bark/mocks`/ |
| 6 | |
| 7 | import ( |
| 8 | "net/httpscip-go gomod github.com/golang/go/src . `net/http`/" |
| 9 | |
| 10 | mockscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/ "github.com/stretchr/testify/mockscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/" |
| 11 | ) |
| 12 | |
| 13 | // NewMockHTTPClient creates a new instance of MockHTTPClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. |
| 14 | // The first argument is typically a *testing.T value. |
| 15 | func NewMockHTTPClientscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/bark/mocks`/NewMockHTTPClient().(t interface { |
| 16 | mockscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/.TestingTscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/TestingT# |
| 17 | Cleanup(func()) |
| 18 | }) *MockHTTPClientscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/bark/mocks`/MockHTTPClient# { |
| 19 | mock := &MockHTTPClientscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/bark/mocks`/MockHTTPClient#{} |
| 20 | mock.Mockscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/bark/mocks`/MockHTTPClient#Mock..Testscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Mock#Test().(t) |
| 21 | |
| 22 | t.Cleanup(func() { mock.AssertExpectationsscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Mock#AssertExpectations().(t) }) |
| 23 | |
| 24 | return mock |
| 25 | } |
| 26 | |
| 27 | // MockHTTPClient is an autogenerated mock type for the HTTPClient type |
| 28 | type MockHTTPClientscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/bark/mocks`/MockHTTPClient# struct { |
| 29 | mockscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/.Mockscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/bark/mocks`/MockHTTPClient#Mock. |
| 30 | } |
| 31 | |
| 32 | type MockHTTPClient_Expecterscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/bark/mocks`/MockHTTPClient_Expecter# struct { |
| 33 | mockscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/bark/mocks`/MockHTTPClient_Expecter#mock. *mockscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/.Mockscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Mock# |
| 34 | } |
| 35 | |
| 36 | func (_m *MockHTTPClientscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/bark/mocks`/MockHTTPClient#) EXPECTscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/bark/mocks`/MockHTTPClient#EXPECT().() *MockHTTPClient_Expecterscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/bark/mocks`/MockHTTPClient_Expecter# { |
| 37 | return &MockHTTPClient_Expecterscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/bark/mocks`/MockHTTPClient_Expecter#{mockscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/bark/mocks`/MockHTTPClient_Expecter#mock.: &_m.Mockscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/bark/mocks`/MockHTTPClient#Mock.} |
| 38 | } |
| 39 | |
| 40 | // Do provides a mock function for the type MockHTTPClient |
| 41 | func (_mock *MockHTTPClientscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/bark/mocks`/MockHTTPClient#) Doscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/bark/mocks`/MockHTTPClient#Do().(req *httpscip-go gomod github.com/golang/go/src . `net/http`/.Requestscip-go gomod github.com/golang/go/src . `net/http`/Request#) (*httpscip-go gomod github.com/golang/go/src . `net/http`/.Responsescip-go gomod github.com/golang/go/src . `net/http`/Response#, error) { |
| 42 | ret := _mock.Calledscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Mock#Called().(req) |
| 43 | |
| 44 | if len(ret) == 0 { |
| 45 | panic("no return value specified for Do") |
| 46 | } |
| 47 | |
| 48 | var r0 *httpscip-go gomod github.com/golang/go/src . `net/http`/.Responsescip-go gomod github.com/golang/go/src . `net/http`/Response# |
| 49 | var r1 error |
| 50 | if returnFunc, ok := ret.Getscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Arguments#Get().(0).(func(*httpscip-go gomod github.com/golang/go/src . `net/http`/.Requestscip-go gomod github.com/golang/go/src . `net/http`/Request#) (*httpscip-go gomod github.com/golang/go/src . `net/http`/.Responsescip-go gomod github.com/golang/go/src . `net/http`/Response#, error)); ok { |
| 51 | return returnFunc(req) |
| 52 | } |
| 53 | if returnFunc, ok := ret.Getscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Arguments#Get().(0).(func(*httpscip-go gomod github.com/golang/go/src . `net/http`/.Requestscip-go gomod github.com/golang/go/src . `net/http`/Request#) *httpscip-go gomod github.com/golang/go/src . `net/http`/.Responsescip-go gomod github.com/golang/go/src . `net/http`/Response#); ok { |
| 54 | r0 = returnFunc(req) |
| 55 | } else { |
| 56 | if ret.Getscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Arguments#Get().(0) != nil { |
| 57 | r0 = ret.Getscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Arguments#Get().(0).(*httpscip-go gomod github.com/golang/go/src . `net/http`/.Responsescip-go gomod github.com/golang/go/src . `net/http`/Response#) |
| 58 | } |
| 59 | } |
| 60 | if returnFunc, ok := ret.Getscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Arguments#Get().(1).(func(*httpscip-go gomod github.com/golang/go/src . `net/http`/.Requestscip-go gomod github.com/golang/go/src . `net/http`/Request#) error); ok { |
| 61 | r1 = returnFunc(req) |
| 62 | } else { |
| 63 | r1 = ret.Errorscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Arguments#Error().(1) |
| 64 | } |
| 65 | return r0, r1 |
| 66 | } |
| 67 | |
| 68 | // MockHTTPClient_Do_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Do' |
| 69 | type MockHTTPClient_Do_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/bark/mocks`/MockHTTPClient_Do_Call# struct { |
| 70 | *mockscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/.Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/bark/mocks`/MockHTTPClient_Do_Call#Call. |
| 71 | } |
| 72 | |
| 73 | // Do is a helper method to define mock.On call |
| 74 | // - req *http.Request |
| 75 | func (_e *MockHTTPClient_Expecterscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/bark/mocks`/MockHTTPClient_Expecter#) Doscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/bark/mocks`/MockHTTPClient_Expecter#Do().(req any) *MockHTTPClient_Do_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/bark/mocks`/MockHTTPClient_Do_Call# { |
| 76 | return &MockHTTPClient_Do_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/bark/mocks`/MockHTTPClient_Do_Call#{Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/bark/mocks`/MockHTTPClient_Do_Call#Call.: _e.mockscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/bark/mocks`/MockHTTPClient_Expecter#mock..Onscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Mock#On().("Do", req)} |
| 77 | } |
| 78 | |
| 79 | func (_c *MockHTTPClient_Do_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/bark/mocks`/MockHTTPClient_Do_Call#) Runscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/bark/mocks`/MockHTTPClient_Do_Call#Run().(run func(req *httpscip-go gomod github.com/golang/go/src . `net/http`/.Requestscip-go gomod github.com/golang/go/src . `net/http`/Request#)) *MockHTTPClient_Do_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/bark/mocks`/MockHTTPClient_Do_Call# { |
| 80 | _c.Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/bark/mocks`/MockHTTPClient_Do_Call#Call..Runscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Call#Run().(func(args mockscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/.Argumentsscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Arguments#) { |
| 81 | var arg0 *httpscip-go gomod github.com/golang/go/src . `net/http`/.Requestscip-go gomod github.com/golang/go/src . `net/http`/Request# |
| 82 | if args[0] != nil { |
| 83 | arg0 = args[0].(*httpscip-go gomod github.com/golang/go/src . `net/http`/.Requestscip-go gomod github.com/golang/go/src . `net/http`/Request#) |
| 84 | } |
| 85 | run( |
| 86 | arg0, |
| 87 | ) |
| 88 | }) |
| 89 | return _c |
| 90 | } |
| 91 | |
| 92 | func (_c *MockHTTPClient_Do_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/bark/mocks`/MockHTTPClient_Do_Call#) Returnscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/bark/mocks`/MockHTTPClient_Do_Call#Return().(response *httpscip-go gomod github.com/golang/go/src . `net/http`/.Responsescip-go gomod github.com/golang/go/src . `net/http`/Response#, err error) *MockHTTPClient_Do_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/bark/mocks`/MockHTTPClient_Do_Call# { |
| 93 | _c.Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/bark/mocks`/MockHTTPClient_Do_Call#Call..Returnscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Call#Return().(response, err) |
| 94 | return _c |
| 95 | } |
| 96 | |
| 97 | func (_c *MockHTTPClient_Do_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/bark/mocks`/MockHTTPClient_Do_Call#) RunAndReturnscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/bark/mocks`/MockHTTPClient_Do_Call#RunAndReturn().(run func(req *httpscip-go gomod github.com/golang/go/src . `net/http`/.Requestscip-go gomod github.com/golang/go/src . `net/http`/Request#) (*httpscip-go gomod github.com/golang/go/src . `net/http`/.Responsescip-go gomod github.com/golang/go/src . `net/http`/Response#, error)) *MockHTTPClient_Do_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/bark/mocks`/MockHTTPClient_Do_Call# { |
| 98 | _c.Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/bark/mocks`/MockHTTPClient_Do_Call#Call..Returnscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Call#Return().(run) |
| 99 | return _c |
| 100 | } |