2024-09-09 08:17:30 +00:00
// Code generated by mockery v2.45.1. DO NOT EDIT.
2024-07-30 20:30:24 +00:00
package adminkindboxvalidator
import (
context "context"
adminaddressparam "git.gocasts.ir/ebhomengo/niki/param/admin/address"
mock "github.com/stretchr/testify/mock"
)
// MockAddressSvc is an autogenerated mock type for the AddressSvc type
type MockAddressSvc struct {
mock . Mock
}
type MockAddressSvc_Expecter struct {
mock * mock . Mock
}
func ( _m * MockAddressSvc ) EXPECT ( ) * MockAddressSvc_Expecter {
return & MockAddressSvc_Expecter { mock : & _m . Mock }
}
// GetAddressByID provides a mock function with given fields: ctx, request
func ( _m * MockAddressSvc ) GetAddressByID ( ctx context . Context , request adminaddressparam . AddressGetRequest ) ( adminaddressparam . AddressGetResponse , error ) {
ret := _m . Called ( ctx , request )
if len ( ret ) == 0 {
panic ( "no return value specified for GetAddressByID" )
}
var r0 adminaddressparam . AddressGetResponse
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , adminaddressparam . AddressGetRequest ) ( adminaddressparam . AddressGetResponse , error ) ) ; ok {
return rf ( ctx , request )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , adminaddressparam . AddressGetRequest ) adminaddressparam . AddressGetResponse ) ; ok {
r0 = rf ( ctx , request )
} else {
r0 = ret . Get ( 0 ) . ( adminaddressparam . AddressGetResponse )
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , adminaddressparam . AddressGetRequest ) error ) ; ok {
r1 = rf ( ctx , request )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockAddressSvc_GetAddressByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAddressByID'
type MockAddressSvc_GetAddressByID_Call struct {
* mock . Call
}
// GetAddressByID is a helper method to define mock.On call
// - ctx context.Context
// - request adminaddressparam.AddressGetRequest
func ( _e * MockAddressSvc_Expecter ) GetAddressByID ( ctx interface { } , request interface { } ) * MockAddressSvc_GetAddressByID_Call {
return & MockAddressSvc_GetAddressByID_Call { Call : _e . mock . On ( "GetAddressByID" , ctx , request ) }
}
func ( _c * MockAddressSvc_GetAddressByID_Call ) Run ( run func ( ctx context . Context , request adminaddressparam . AddressGetRequest ) ) * MockAddressSvc_GetAddressByID_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( adminaddressparam . AddressGetRequest ) )
} )
return _c
}
func ( _c * MockAddressSvc_GetAddressByID_Call ) Return ( _a0 adminaddressparam . AddressGetResponse , _a1 error ) * MockAddressSvc_GetAddressByID_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockAddressSvc_GetAddressByID_Call ) RunAndReturn ( run func ( context . Context , adminaddressparam . AddressGetRequest ) ( adminaddressparam . AddressGetResponse , error ) ) * MockAddressSvc_GetAddressByID_Call {
_c . Call . Return ( run )
return _c
}
// NewMockAddressSvc creates a new instance of MockAddressSvc. 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 NewMockAddressSvc ( t interface {
mock . TestingT
Cleanup ( func ( ) )
} ) * MockAddressSvc {
mock := & MockAddressSvc { }
mock . Mock . Test ( t )
t . Cleanup ( func ( ) { mock . AssertExpectations ( t ) } )
return mock
}