mirror of
https://github.com/hanzoai/notify.git
synced 2026-10-30 15:04:32 +00:00
94 lines
2.7 KiB
Go
94 lines
2.7 KiB
Go
// Code generated by mockery v2.43.2. DO NOT EDIT.
|
|
|
|
package plivo
|
|
|
|
import (
|
|
v7 "github.com/plivo/plivo-go/v7"
|
|
mock "github.com/stretchr/testify/mock"
|
|
)
|
|
|
|
// mockplivoMsgClient is an autogenerated mock type for the plivoMsgClient type
|
|
type mockplivoMsgClient struct {
|
|
mock.Mock
|
|
}
|
|
|
|
type mockplivoMsgClient_Expecter struct {
|
|
mock *mock.Mock
|
|
}
|
|
|
|
func (_m *mockplivoMsgClient) EXPECT() *mockplivoMsgClient_Expecter {
|
|
return &mockplivoMsgClient_Expecter{mock: &_m.Mock}
|
|
}
|
|
|
|
// Create provides a mock function with given fields: _a0
|
|
func (_m *mockplivoMsgClient) Create(_a0 v7.MessageCreateParams) (*v7.MessageCreateResponseBody, error) {
|
|
ret := _m.Called(_a0)
|
|
|
|
if len(ret) == 0 {
|
|
panic("no return value specified for Create")
|
|
}
|
|
|
|
var r0 *v7.MessageCreateResponseBody
|
|
var r1 error
|
|
if rf, ok := ret.Get(0).(func(v7.MessageCreateParams) (*v7.MessageCreateResponseBody, error)); ok {
|
|
return rf(_a0)
|
|
}
|
|
if rf, ok := ret.Get(0).(func(v7.MessageCreateParams) *v7.MessageCreateResponseBody); ok {
|
|
r0 = rf(_a0)
|
|
} else {
|
|
if ret.Get(0) != nil {
|
|
r0 = ret.Get(0).(*v7.MessageCreateResponseBody)
|
|
}
|
|
}
|
|
|
|
if rf, ok := ret.Get(1).(func(v7.MessageCreateParams) error); ok {
|
|
r1 = rf(_a0)
|
|
} else {
|
|
r1 = ret.Error(1)
|
|
}
|
|
|
|
return r0, r1
|
|
}
|
|
|
|
// mockplivoMsgClient_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
|
|
type mockplivoMsgClient_Create_Call struct {
|
|
*mock.Call
|
|
}
|
|
|
|
// Create is a helper method to define mock.On call
|
|
// - _a0 v7.MessageCreateParams
|
|
func (_e *mockplivoMsgClient_Expecter) Create(_a0 interface{}) *mockplivoMsgClient_Create_Call {
|
|
return &mockplivoMsgClient_Create_Call{Call: _e.mock.On("Create", _a0)}
|
|
}
|
|
|
|
func (_c *mockplivoMsgClient_Create_Call) Run(run func(_a0 v7.MessageCreateParams)) *mockplivoMsgClient_Create_Call {
|
|
_c.Call.Run(func(args mock.Arguments) {
|
|
run(args[0].(v7.MessageCreateParams))
|
|
})
|
|
return _c
|
|
}
|
|
|
|
func (_c *mockplivoMsgClient_Create_Call) Return(_a0 *v7.MessageCreateResponseBody, _a1 error) *mockplivoMsgClient_Create_Call {
|
|
_c.Call.Return(_a0, _a1)
|
|
return _c
|
|
}
|
|
|
|
func (_c *mockplivoMsgClient_Create_Call) RunAndReturn(run func(v7.MessageCreateParams) (*v7.MessageCreateResponseBody, error)) *mockplivoMsgClient_Create_Call {
|
|
_c.Call.Return(run)
|
|
return _c
|
|
}
|
|
|
|
// newMockplivoMsgClient creates a new instance of mockplivoMsgClient. 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 newMockplivoMsgClient(t interface {
|
|
mock.TestingT
|
|
Cleanup(func())
|
|
}) *mockplivoMsgClient {
|
|
mock := &mockplivoMsgClient{}
|
|
mock.Mock.Test(t)
|
|
|
|
t.Cleanup(func() { mock.AssertExpectations(t) })
|
|
|
|
return mock
|
|
}
|