Documentation
¶
Index ¶
- type Repository
- type Repository_Expecter
- type Repository_Get_Call
- func (_c *Repository_Get_Call) Return(_a0 *session.Session, _a1 error) *Repository_Get_Call
- func (_c *Repository_Get_Call) Run(run func(ctx context.Context, gatewayID string, sessionID string)) *Repository_Get_Call
- func (_c *Repository_Get_Call) RunAndReturn(run func(context.Context, string, string) (*session.Session, error)) *Repository_Get_Call
- type Repository_Save_Call
- func (_c *Repository_Save_Call) Return(_a0 error) *Repository_Save_Call
- func (_c *Repository_Save_Call) Run(run func(ctx context.Context, _a1 *session.Session)) *Repository_Save_Call
- func (_c *Repository_Save_Call) RunAndReturn(run func(context.Context, *session.Session) error) *Repository_Save_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
Repository is an autogenerated mock type for the Repository type
func NewRepository ¶
func NewRepository(t interface {
mock.TestingT
Cleanup(func())
}) *Repository
NewRepository creates a new instance of Repository. 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 (*Repository) EXPECT ¶
func (_m *Repository) EXPECT() *Repository_Expecter
type Repository_Expecter ¶
type Repository_Expecter struct {
// contains filtered or unexported fields
}
func (*Repository_Expecter) Get ¶
func (_e *Repository_Expecter) Get(ctx interface{}, gatewayID interface{}, sessionID interface{}) *Repository_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- gatewayID string
- sessionID string
func (*Repository_Expecter) Save ¶
func (_e *Repository_Expecter) Save(ctx interface{}, _a1 interface{}) *Repository_Save_Call
Save is a helper method to define mock.On call
- ctx context.Context
- _a1 *session.Session
type Repository_Get_Call ¶
Repository_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*Repository_Get_Call) Return ¶
func (_c *Repository_Get_Call) Return(_a0 *session.Session, _a1 error) *Repository_Get_Call
func (*Repository_Get_Call) Run ¶
func (_c *Repository_Get_Call) Run(run func(ctx context.Context, gatewayID string, sessionID string)) *Repository_Get_Call
func (*Repository_Get_Call) RunAndReturn ¶
func (_c *Repository_Get_Call) RunAndReturn(run func(context.Context, string, string) (*session.Session, error)) *Repository_Get_Call
type Repository_Save_Call ¶
Repository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*Repository_Save_Call) Return ¶
func (_c *Repository_Save_Call) Return(_a0 error) *Repository_Save_Call
func (*Repository_Save_Call) Run ¶
func (_c *Repository_Save_Call) Run(run func(ctx context.Context, _a1 *session.Session)) *Repository_Save_Call
func (*Repository_Save_Call) RunAndReturn ¶
func (_c *Repository_Save_Call) RunAndReturn(run func(context.Context, *session.Session) error) *Repository_Save_Call
Click to show internal directories.
Click to hide internal directories.