| 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 | 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`/" |
| 10 | ) |
| 11 | |
| 12 | // NewMockValidator creates a new instance of MockValidator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. |
| 13 | // The first argument is typically a *testing.T value. |
| 14 | func NewMockValidatorscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/NewMockValidator().(t interface { |
| 15 | 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# |
| 16 | Cleanup(func()) |
| 17 | }) *MockValidatorscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator# { |
| 18 | mock := &MockValidatorscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator#{} |
| 19 | mock.Mockscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator#Mock..Testscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Mock#Test().(t) |
| 20 | |
| 21 | t.Cleanup(func() { mock.AssertExpectationsscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Mock#AssertExpectations().(t) }) |
| 22 | |
| 23 | return mock |
| 24 | } |
| 25 | |
| 26 | // MockValidator is an autogenerated mock type for the Validator type |
| 27 | type MockValidatorscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator# struct { |
| 28 | 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`/MockValidator#Mock. |
| 29 | } |
| 30 | |
| 31 | type MockValidator_Expecterscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_Expecter# struct { |
| 32 | mockscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_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# |
| 33 | } |
| 34 | |
| 35 | func (_m *MockValidatorscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator#) EXPECTscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator#EXPECT().() *MockValidator_Expecterscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_Expecter# { |
| 36 | return &MockValidator_Expecterscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_Expecter#{mockscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_Expecter#mock.: &_m.Mockscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator#Mock.} |
| 37 | } |
| 38 | |
| 39 | // ValidateDate provides a mock function for the type MockValidator |
| 40 | func (_mock *MockValidatorscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator#) ValidateDatescip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator#ValidateDate().(date string) (string, error) { |
| 41 | ret := _mock.Calledscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Mock#Called().(date) |
| 42 | |
| 43 | if len(ret) == 0 { |
| 44 | panic("no return value specified for ValidateDate") |
| 45 | } |
| 46 | |
| 47 | var r0 string |
| 48 | var r1 error |
| 49 | if returnFunc, ok := ret.Getscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Arguments#Get().(0).(func(string) (string, error)); ok { |
| 50 | return returnFunc(date) |
| 51 | } |
| 52 | if returnFunc, ok := ret.Getscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Arguments#Get().(0).(func(string) string); ok { |
| 53 | r0 = returnFunc(date) |
| 54 | } else { |
| 55 | r0 = ret.Getscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Arguments#Get().(0).(string) |
| 56 | } |
| 57 | if returnFunc, ok := ret.Getscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Arguments#Get().(1).(func(string) error); ok { |
| 58 | r1 = returnFunc(date) |
| 59 | } else { |
| 60 | r1 = ret.Errorscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Arguments#Error().(1) |
| 61 | } |
| 62 | return r0, r1 |
| 63 | } |
| 64 | |
| 65 | // MockValidator_ValidateDate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ValidateDate' |
| 66 | type MockValidator_ValidateDate_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateDate_Call# struct { |
| 67 | *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`/MockValidator_ValidateDate_Call#Call. |
| 68 | } |
| 69 | |
| 70 | // ValidateDate is a helper method to define mock.On call |
| 71 | // - date string |
| 72 | func (_e *MockValidator_Expecterscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_Expecter#) ValidateDatescip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_Expecter#ValidateDate().(date any) *MockValidator_ValidateDate_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateDate_Call# { |
| 73 | return &MockValidator_ValidateDate_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateDate_Call#{Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateDate_Call#Call.: _e.mockscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_Expecter#mock..Onscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Mock#On().("ValidateDate", date)} |
| 74 | } |
| 75 | |
| 76 | func (_c *MockValidator_ValidateDate_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateDate_Call#) Runscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateDate_Call#Run().(run func(date string)) *MockValidator_ValidateDate_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateDate_Call# { |
| 77 | _c.Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateDate_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#) { |
| 78 | var arg0 string |
| 79 | if args[0] != nil { |
| 80 | arg0 = args[0].(string) |
| 81 | } |
| 82 | run( |
| 83 | arg0, |
| 84 | ) |
| 85 | }) |
| 86 | return _c |
| 87 | } |
| 88 | |
| 89 | func (_c *MockValidator_ValidateDate_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateDate_Call#) Returnscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateDate_Call#Return().(s string, err error) *MockValidator_ValidateDate_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateDate_Call# { |
| 90 | _c.Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateDate_Call#Call..Returnscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Call#Return().(s, err) |
| 91 | return _c |
| 92 | } |
| 93 | |
| 94 | func (_c *MockValidator_ValidateDate_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateDate_Call#) RunAndReturnscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateDate_Call#RunAndReturn().(run func(date string) (string, error)) *MockValidator_ValidateDate_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateDate_Call# { |
| 95 | _c.Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateDate_Call#Call..Returnscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Call#Return().(run) |
| 96 | return _c |
| 97 | } |
| 98 | |
| 99 | // ValidateMessage provides a mock function for the type MockValidator |
| 100 | func (_mock *MockValidatorscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator#) ValidateMessagescip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator#ValidateMessage().(message string) error { |
| 101 | ret := _mock.Calledscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Mock#Called().(message) |
| 102 | |
| 103 | if len(ret) == 0 { |
| 104 | panic("no return value specified for ValidateMessage") |
| 105 | } |
| 106 | |
| 107 | var r0 error |
| 108 | if returnFunc, ok := ret.Getscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Arguments#Get().(0).(func(string) error); ok { |
| 109 | r0 = returnFunc(message) |
| 110 | } else { |
| 111 | r0 = ret.Errorscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Arguments#Error().(0) |
| 112 | } |
| 113 | return r0 |
| 114 | } |
| 115 | |
| 116 | // MockValidator_ValidateMessage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ValidateMessage' |
| 117 | type MockValidator_ValidateMessage_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateMessage_Call# struct { |
| 118 | *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`/MockValidator_ValidateMessage_Call#Call. |
| 119 | } |
| 120 | |
| 121 | // ValidateMessage is a helper method to define mock.On call |
| 122 | // - message string |
| 123 | func (_e *MockValidator_Expecterscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_Expecter#) ValidateMessagescip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_Expecter#ValidateMessage().(message any) *MockValidator_ValidateMessage_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateMessage_Call# { |
| 124 | return &MockValidator_ValidateMessage_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateMessage_Call#{Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateMessage_Call#Call.: _e.mockscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_Expecter#mock..Onscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Mock#On().("ValidateMessage", message)} |
| 125 | } |
| 126 | |
| 127 | func (_c *MockValidator_ValidateMessage_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateMessage_Call#) Runscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateMessage_Call#Run().(run func(message string)) *MockValidator_ValidateMessage_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateMessage_Call# { |
| 128 | _c.Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateMessage_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#) { |
| 129 | var arg0 string |
| 130 | if args[0] != nil { |
| 131 | arg0 = args[0].(string) |
| 132 | } |
| 133 | run( |
| 134 | arg0, |
| 135 | ) |
| 136 | }) |
| 137 | return _c |
| 138 | } |
| 139 | |
| 140 | func (_c *MockValidator_ValidateMessage_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateMessage_Call#) Returnscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateMessage_Call#Return().(err error) *MockValidator_ValidateMessage_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateMessage_Call# { |
| 141 | _c.Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateMessage_Call#Call..Returnscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Call#Return().(err) |
| 142 | return _c |
| 143 | } |
| 144 | |
| 145 | func (_c *MockValidator_ValidateMessage_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateMessage_Call#) RunAndReturnscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateMessage_Call#RunAndReturn().(run func(message string) error) *MockValidator_ValidateMessage_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateMessage_Call# { |
| 146 | _c.Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateMessage_Call#Call..Returnscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Call#Return().(run) |
| 147 | return _c |
| 148 | } |
| 149 | |
| 150 | // ValidatePriority provides a mock function for the type MockValidator |
| 151 | func (_mock *MockValidatorscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator#) ValidatePriorityscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator#ValidatePriority().(priority int) error { |
| 152 | ret := _mock.Calledscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Mock#Called().(priority) |
| 153 | |
| 154 | if len(ret) == 0 { |
| 155 | panic("no return value specified for ValidatePriority") |
| 156 | } |
| 157 | |
| 158 | var r0 error |
| 159 | if returnFunc, ok := ret.Getscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Arguments#Get().(0).(func(int) error); ok { |
| 160 | r0 = returnFunc(priority) |
| 161 | } else { |
| 162 | r0 = ret.Errorscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Arguments#Error().(0) |
| 163 | } |
| 164 | return r0 |
| 165 | } |
| 166 | |
| 167 | // MockValidator_ValidatePriority_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ValidatePriority' |
| 168 | type MockValidator_ValidatePriority_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidatePriority_Call# struct { |
| 169 | *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`/MockValidator_ValidatePriority_Call#Call. |
| 170 | } |
| 171 | |
| 172 | // ValidatePriority is a helper method to define mock.On call |
| 173 | // - priority int |
| 174 | func (_e *MockValidator_Expecterscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_Expecter#) ValidatePriorityscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_Expecter#ValidatePriority().(priority any) *MockValidator_ValidatePriority_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidatePriority_Call# { |
| 175 | return &MockValidator_ValidatePriority_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidatePriority_Call#{Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidatePriority_Call#Call.: _e.mockscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_Expecter#mock..Onscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Mock#On().("ValidatePriority", priority)} |
| 176 | } |
| 177 | |
| 178 | func (_c *MockValidator_ValidatePriority_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidatePriority_Call#) Runscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidatePriority_Call#Run().(run func(priority int)) *MockValidator_ValidatePriority_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidatePriority_Call# { |
| 179 | _c.Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidatePriority_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#) { |
| 180 | var arg0 int |
| 181 | if args[0] != nil { |
| 182 | arg0 = args[0].(int) |
| 183 | } |
| 184 | run( |
| 185 | arg0, |
| 186 | ) |
| 187 | }) |
| 188 | return _c |
| 189 | } |
| 190 | |
| 191 | func (_c *MockValidator_ValidatePriority_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidatePriority_Call#) Returnscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidatePriority_Call#Return().(err error) *MockValidator_ValidatePriority_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidatePriority_Call# { |
| 192 | _c.Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidatePriority_Call#Call..Returnscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Call#Return().(err) |
| 193 | return _c |
| 194 | } |
| 195 | |
| 196 | func (_c *MockValidator_ValidatePriority_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidatePriority_Call#) RunAndReturnscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidatePriority_Call#RunAndReturn().(run func(priority int) error) *MockValidator_ValidatePriority_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidatePriority_Call# { |
| 197 | _c.Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidatePriority_Call#Call..Returnscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Call#Return().(run) |
| 198 | return _c |
| 199 | } |
| 200 | |
| 201 | // ValidateServiceInitialized provides a mock function for the type MockValidator |
| 202 | func (_mock *MockValidatorscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator#) ValidateServiceInitializedscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator#ValidateServiceInitialized().(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#) error { |
| 203 | ret := _mock.Calledscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Mock#Called().(config) |
| 204 | |
| 205 | if len(ret) == 0 { |
| 206 | panic("no return value specified for ValidateServiceInitialized") |
| 207 | } |
| 208 | |
| 209 | var r0 error |
| 210 | if returnFunc, ok := ret.Getscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Arguments#Get().(0).(func(*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 { |
| 211 | r0 = returnFunc(config) |
| 212 | } else { |
| 213 | r0 = ret.Errorscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Arguments#Error().(0) |
| 214 | } |
| 215 | return r0 |
| 216 | } |
| 217 | |
| 218 | // MockValidator_ValidateServiceInitialized_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ValidateServiceInitialized' |
| 219 | type MockValidator_ValidateServiceInitialized_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateServiceInitialized_Call# struct { |
| 220 | *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`/MockValidator_ValidateServiceInitialized_Call#Call. |
| 221 | } |
| 222 | |
| 223 | // ValidateServiceInitialized is a helper method to define mock.On call |
| 224 | // - config *gotify.Config |
| 225 | func (_e *MockValidator_Expecterscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_Expecter#) ValidateServiceInitializedscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_Expecter#ValidateServiceInitialized().(config any) *MockValidator_ValidateServiceInitialized_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateServiceInitialized_Call# { |
| 226 | return &MockValidator_ValidateServiceInitialized_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateServiceInitialized_Call#{Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateServiceInitialized_Call#Call.: _e.mockscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_Expecter#mock..Onscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Mock#On().("ValidateServiceInitialized", config)} |
| 227 | } |
| 228 | |
| 229 | func (_c *MockValidator_ValidateServiceInitialized_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateServiceInitialized_Call#) Runscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateServiceInitialized_Call#Run().(run func(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#)) *MockValidator_ValidateServiceInitialized_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateServiceInitialized_Call# { |
| 230 | _c.Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateServiceInitialized_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#) { |
| 231 | var arg0 *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# |
| 232 | if args[0] != nil { |
| 233 | arg0 = args[0].(*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#) |
| 234 | } |
| 235 | run( |
| 236 | arg0, |
| 237 | ) |
| 238 | }) |
| 239 | return _c |
| 240 | } |
| 241 | |
| 242 | func (_c *MockValidator_ValidateServiceInitialized_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateServiceInitialized_Call#) Returnscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateServiceInitialized_Call#Return().(err error) *MockValidator_ValidateServiceInitialized_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateServiceInitialized_Call# { |
| 243 | _c.Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateServiceInitialized_Call#Call..Returnscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Call#Return().(err) |
| 244 | return _c |
| 245 | } |
| 246 | |
| 247 | func (_c *MockValidator_ValidateServiceInitialized_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateServiceInitialized_Call#) RunAndReturnscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateServiceInitialized_Call#RunAndReturn().(run func(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#) error) *MockValidator_ValidateServiceInitialized_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateServiceInitialized_Call# { |
| 248 | _c.Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateServiceInitialized_Call#Call..Returnscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Call#Return().(run) |
| 249 | return _c |
| 250 | } |
| 251 | |
| 252 | // ValidateToken provides a mock function for the type MockValidator |
| 253 | func (_mock *MockValidatorscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator#) ValidateTokenscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator#ValidateToken().(token string) bool { |
| 254 | ret := _mock.Calledscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Mock#Called().(token) |
| 255 | |
| 256 | if len(ret) == 0 { |
| 257 | panic("no return value specified for ValidateToken") |
| 258 | } |
| 259 | |
| 260 | var r0 bool |
| 261 | if returnFunc, ok := ret.Getscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Arguments#Get().(0).(func(string) bool); ok { |
| 262 | r0 = returnFunc(token) |
| 263 | } else { |
| 264 | r0 = ret.Getscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Arguments#Get().(0).(bool) |
| 265 | } |
| 266 | return r0 |
| 267 | } |
| 268 | |
| 269 | // MockValidator_ValidateToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ValidateToken' |
| 270 | type MockValidator_ValidateToken_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateToken_Call# struct { |
| 271 | *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`/MockValidator_ValidateToken_Call#Call. |
| 272 | } |
| 273 | |
| 274 | // ValidateToken is a helper method to define mock.On call |
| 275 | // - token string |
| 276 | func (_e *MockValidator_Expecterscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_Expecter#) ValidateTokenscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_Expecter#ValidateToken().(token any) *MockValidator_ValidateToken_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateToken_Call# { |
| 277 | return &MockValidator_ValidateToken_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateToken_Call#{Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateToken_Call#Call.: _e.mockscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_Expecter#mock..Onscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Mock#On().("ValidateToken", token)} |
| 278 | } |
| 279 | |
| 280 | func (_c *MockValidator_ValidateToken_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateToken_Call#) Runscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateToken_Call#Run().(run func(token string)) *MockValidator_ValidateToken_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateToken_Call# { |
| 281 | _c.Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateToken_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#) { |
| 282 | var arg0 string |
| 283 | if args[0] != nil { |
| 284 | arg0 = args[0].(string) |
| 285 | } |
| 286 | run( |
| 287 | arg0, |
| 288 | ) |
| 289 | }) |
| 290 | return _c |
| 291 | } |
| 292 | |
| 293 | func (_c *MockValidator_ValidateToken_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateToken_Call#) Returnscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateToken_Call#Return().(b bool) *MockValidator_ValidateToken_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateToken_Call# { |
| 294 | _c.Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateToken_Call#Call..Returnscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Call#Return().(b) |
| 295 | return _c |
| 296 | } |
| 297 | |
| 298 | func (_c *MockValidator_ValidateToken_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateToken_Call#) RunAndReturnscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateToken_Call#RunAndReturn().(run func(token string) bool) *MockValidator_ValidateToken_Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateToken_Call# { |
| 299 | _c.Callscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/services/push/gotify/mocks`/MockValidator_ValidateToken_Call#Call..Returnscip-go gomod github.com/stretchr/testify v1.12.1 `github.com/stretchr/testify/mock`/Call#Return().(run) |
| 300 | return _c |
| 301 | } |