| 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/gotify/mocks`/ |
| 6 | |
| 7 | import ( |
| 8 | "github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotifyscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify`/" |
| 9 | "github.com/nicholas-fedor/shoutrrr/pkg/typesscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/types`/" |
| 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 | // NewMockPayloadBuilder creates a new instance of MockPayloadBuilder. 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 NewMockPayloadBuilderscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/NewMockPayloadBuilder().(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 | }) *MockPayloadBuilderscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockPayloadBuilder# { |
| 19 | mock := &MockPayloadBuilderscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockPayloadBuilder#{} |
| 20 | mock.Mockscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockPayloadBuilder#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 | // MockPayloadBuilder is an autogenerated mock type for the PayloadBuilder type |
| 28 | type MockPayloadBuilderscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockPayloadBuilder# 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/gotify/mocks`/MockPayloadBuilder#Mock. |
| 30 | } |
| 31 | |
| 32 | type MockPayloadBuilder_Expecterscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockPayloadBuilder_Expecter# struct { |
| 33 | mockscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockPayloadBuilder_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 *MockPayloadBuilderscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockPayloadBuilder#) EXPECTscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockPayloadBuilder#EXPECT().() *MockPayloadBuilder_Expecterscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockPayloadBuilder_Expecter# { |
| 37 | return &MockPayloadBuilder_Expecterscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockPayloadBuilder_Expecter#{mockscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockPayloadBuilder_Expecter#mock.: &_m.Mockscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockPayloadBuilder#Mock.} |
| 38 | } |
| 39 | |
| 40 | // ParseExtras provides a mock function for the type MockPayloadBuilder |
| 41 | func (_mock *MockPayloadBuilderscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockPayloadBuilder#) ParseExtrasscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockPayloadBuilder#ParseExtras().(params *typesscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/types`/.Paramsscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/types`/Params#, config *gotifyscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify`/.Configscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify`/Config#) (map[string]any, error) { |
| 42 | ret := _mock.Calledscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Mock#Called().(params, config) |
| 43 | |
| 44 | if len(ret) == 0 { |
| 45 | panic("no return value specified for ParseExtras") |
| 46 | } |
| 47 | |
| 48 | var r0 map[string]any |
| 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(*typesscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/types`/.Paramsscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/types`/Params#, *gotifyscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify`/.Configscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify`/Config#) (map[string]any, error)); ok { |
| 51 | return returnFunc(params, config) |
| 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(*typesscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/types`/.Paramsscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/types`/Params#, *gotifyscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify`/.Configscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify`/Config#) map[string]any); ok { |
| 54 | r0 = returnFunc(params, config) |
| 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).(map[string]any) |
| 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(*typesscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/types`/.Paramsscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/types`/Params#, *gotifyscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify`/.Configscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify`/Config#) error); ok { |
| 61 | r1 = returnFunc(params, config) |
| 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 | // MockPayloadBuilder_ParseExtras_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ParseExtras' |
| 69 | type MockPayloadBuilder_ParseExtras_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockPayloadBuilder_ParseExtras_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/gotify/mocks`/MockPayloadBuilder_ParseExtras_Call#Call. |
| 71 | } |
| 72 | |
| 73 | // ParseExtras is a helper method to define mock.On call |
| 74 | // - params *types.Params |
| 75 | // - config *gotify.Config |
| 76 | func (_e *MockPayloadBuilder_Expecterscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockPayloadBuilder_Expecter#) ParseExtrasscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockPayloadBuilder_Expecter#ParseExtras().(params any, config any) *MockPayloadBuilder_ParseExtras_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockPayloadBuilder_ParseExtras_Call# { |
| 77 | return &MockPayloadBuilder_ParseExtras_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockPayloadBuilder_ParseExtras_Call#{Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockPayloadBuilder_ParseExtras_Call#Call.: _e.mockscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockPayloadBuilder_Expecter#mock..Onscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Mock#On().("ParseExtras", params, config)} |
| 78 | } |
| 79 | |
| 80 | func (_c *MockPayloadBuilder_ParseExtras_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockPayloadBuilder_ParseExtras_Call#) Runscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockPayloadBuilder_ParseExtras_Call#Run().(run func(params *typesscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/types`/.Paramsscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/types`/Params#, config *gotifyscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify`/.Configscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify`/Config#)) *MockPayloadBuilder_ParseExtras_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockPayloadBuilder_ParseExtras_Call# { |
| 81 | _c.Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockPayloadBuilder_ParseExtras_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#) { |
| 82 | var arg0 *typesscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/types`/.Paramsscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/types`/Params# |
| 83 | if args[0] != nil { |
| 84 | arg0 = args[0].(*typesscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/types`/.Paramsscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/types`/Params#) |
| 85 | } |
| 86 | var arg1 *gotifyscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify`/.Configscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify`/Config# |
| 87 | if args[1] != nil { |
| 88 | arg1 = args[1].(*gotifyscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify`/.Configscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify`/Config#) |
| 89 | } |
| 90 | run( |
| 91 | arg0, |
| 92 | arg1, |
| 93 | ) |
| 94 | }) |
| 95 | return _c |
| 96 | } |
| 97 | |
| 98 | func (_c *MockPayloadBuilder_ParseExtras_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockPayloadBuilder_ParseExtras_Call#) Returnscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockPayloadBuilder_ParseExtras_Call#Return().(stringToV map[string]any, err error) *MockPayloadBuilder_ParseExtras_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockPayloadBuilder_ParseExtras_Call# { |
| 99 | _c.Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockPayloadBuilder_ParseExtras_Call#Call..Returnscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Call#Return().(stringToV, err) |
| 100 | return _c |
| 101 | } |
| 102 | |
| 103 | func (_c *MockPayloadBuilder_ParseExtras_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockPayloadBuilder_ParseExtras_Call#) RunAndReturnscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockPayloadBuilder_ParseExtras_Call#RunAndReturn().(run func(params *typesscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/types`/.Paramsscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/types`/Params#, config *gotifyscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify`/.Configscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify`/Config#) (map[string]any, error)) *MockPayloadBuilder_ParseExtras_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockPayloadBuilder_ParseExtras_Call# { |
| 104 | _c.Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockPayloadBuilder_ParseExtras_Call#Call..Returnscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Call#Return().(run) |
| 105 | return _c |
| 106 | } |
| 107 | |
| 108 | // PrepareRequest provides a mock function for the type MockPayloadBuilder |
| 109 | func (_mock *MockPayloadBuilderscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockPayloadBuilder#) PrepareRequestscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockPayloadBuilder#PrepareRequest().(message string, config *gotifyscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify`/.Configscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify`/Config#, extras map[string]any, date string) *gotifyscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify`/.MessageRequestscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify`/MessageRequest# { |
| 110 | ret := _mock.Calledscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Mock#Called().(message, config, extras, date) |
| 111 | |
| 112 | if len(ret) == 0 { |
| 113 | panic("no return value specified for PrepareRequest") |
| 114 | } |
| 115 | |
| 116 | var r0 *gotifyscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify`/.MessageRequestscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify`/MessageRequest# |
| 117 | if returnFunc, ok := ret.Getscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Arguments#Get().(0).(func(string, *gotifyscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify`/.Configscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify`/Config#, map[string]any, string) *gotifyscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify`/.MessageRequestscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify`/MessageRequest#); ok { |
| 118 | r0 = returnFunc(message, config, extras, date) |
| 119 | } else { |
| 120 | if ret.Getscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Arguments#Get().(0) != nil { |
| 121 | r0 = ret.Getscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Arguments#Get().(0).(*gotifyscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify`/.MessageRequestscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify`/MessageRequest#) |
| 122 | } |
| 123 | } |
| 124 | return r0 |
| 125 | } |
| 126 | |
| 127 | // MockPayloadBuilder_PrepareRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PrepareRequest' |
| 128 | type MockPayloadBuilder_PrepareRequest_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockPayloadBuilder_PrepareRequest_Call# struct { |
| 129 | *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/gotify/mocks`/MockPayloadBuilder_PrepareRequest_Call#Call. |
| 130 | } |
| 131 | |
| 132 | // PrepareRequest is a helper method to define mock.On call |
| 133 | // - message string |
| 134 | // - config *gotify.Config |
| 135 | // - extras map[string]any |
| 136 | // - date string |
| 137 | func (_e *MockPayloadBuilder_Expecterscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockPayloadBuilder_Expecter#) PrepareRequestscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockPayloadBuilder_Expecter#PrepareRequest().(message any, config any, extras any, date any) *MockPayloadBuilder_PrepareRequest_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockPayloadBuilder_PrepareRequest_Call# { |
| 138 | return &MockPayloadBuilder_PrepareRequest_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockPayloadBuilder_PrepareRequest_Call#{Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockPayloadBuilder_PrepareRequest_Call#Call.: _e.mockscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockPayloadBuilder_Expecter#mock..Onscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Mock#On().("PrepareRequest", message, config, extras, date)} |
| 139 | } |
| 140 | |
| 141 | func (_c *MockPayloadBuilder_PrepareRequest_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockPayloadBuilder_PrepareRequest_Call#) Runscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockPayloadBuilder_PrepareRequest_Call#Run().(run func(message string, config *gotifyscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify`/.Configscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify`/Config#, extras map[string]any, date string)) *MockPayloadBuilder_PrepareRequest_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockPayloadBuilder_PrepareRequest_Call# { |
| 142 | _c.Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockPayloadBuilder_PrepareRequest_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#) { |
| 143 | var arg0 string |
| 144 | if args[0] != nil { |
| 145 | arg0 = args[0].(string) |
| 146 | } |
| 147 | var arg1 *gotifyscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify`/.Configscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify`/Config# |
| 148 | if args[1] != nil { |
| 149 | arg1 = args[1].(*gotifyscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify`/.Configscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify`/Config#) |
| 150 | } |
| 151 | var arg2 map[string]any |
| 152 | if args[2] != nil { |
| 153 | arg2 = args[2].(map[string]any) |
| 154 | } |
| 155 | var arg3 string |
| 156 | if args[3] != nil { |
| 157 | arg3 = args[3].(string) |
| 158 | } |
| 159 | run( |
| 160 | arg0, |
| 161 | arg1, |
| 162 | arg2, |
| 163 | arg3, |
| 164 | ) |
| 165 | }) |
| 166 | return _c |
| 167 | } |
| 168 | |
| 169 | func (_c *MockPayloadBuilder_PrepareRequest_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockPayloadBuilder_PrepareRequest_Call#) Returnscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockPayloadBuilder_PrepareRequest_Call#Return().(messageRequest *gotifyscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify`/.MessageRequestscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify`/MessageRequest#) *MockPayloadBuilder_PrepareRequest_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockPayloadBuilder_PrepareRequest_Call# { |
| 170 | _c.Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockPayloadBuilder_PrepareRequest_Call#Call..Returnscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Call#Return().(messageRequest) |
| 171 | return _c |
| 172 | } |
| 173 | |
| 174 | func (_c *MockPayloadBuilder_PrepareRequest_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockPayloadBuilder_PrepareRequest_Call#) RunAndReturnscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockPayloadBuilder_PrepareRequest_Call#RunAndReturn().(run func(message string, config *gotifyscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify`/.Configscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify`/Config#, extras map[string]any, date string) *gotifyscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify`/.MessageRequestscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify`/MessageRequest#) *MockPayloadBuilder_PrepareRequest_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockPayloadBuilder_PrepareRequest_Call# { |
| 175 | _c.Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockPayloadBuilder_PrepareRequest_Call#Call..Returnscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Call#Return().(run) |
| 176 | return _c |
| 177 | } |