1
0
mirror of https://github.com/nikoksr/notify.git synced 2025-02-19 19:00:14 +02:00
notify/service/mailgun/mock_option.go

66 lines
1.7 KiB
Go

// Code generated by mockery v2.43.2. DO NOT EDIT.
package mailgun
import mock "github.com/stretchr/testify/mock"
// mockOption is an autogenerated mock type for the Option type
type mockOption struct {
mock.Mock
}
type mockOption_Expecter struct {
mock *mock.Mock
}
func (_m *mockOption) EXPECT() *mockOption_Expecter {
return &mockOption_Expecter{mock: &_m.Mock}
}
// Execute provides a mock function with given fields: _a0
func (_m *mockOption) Execute(_a0 *Mailgun) {
_m.Called(_a0)
}
// mockOption_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
type mockOption_Execute_Call struct {
*mock.Call
}
// Execute is a helper method to define mock.On call
// - _a0 *Mailgun
func (_e *mockOption_Expecter) Execute(_a0 interface{}) *mockOption_Execute_Call {
return &mockOption_Execute_Call{Call: _e.mock.On("Execute", _a0)}
}
func (_c *mockOption_Execute_Call) Run(run func(_a0 *Mailgun)) *mockOption_Execute_Call {
_c.Call.Run(func(args mock.Arguments) {
run(args[0].(*Mailgun))
})
return _c
}
func (_c *mockOption_Execute_Call) Return() *mockOption_Execute_Call {
_c.Call.Return()
return _c
}
func (_c *mockOption_Execute_Call) RunAndReturn(run func(*Mailgun)) *mockOption_Execute_Call {
_c.Call.Return(run)
return _c
}
// newMockOption creates a new instance of mockOption. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
// The first argument is typically a *testing.T value.
func newMockOption(t interface {
mock.TestingT
Cleanup(func())
}) *mockOption {
mock := &mockOption{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}