Documentation
¶
Index ¶
- type BootstrapRepositoryMock
- func (_m *BootstrapRepositoryMock) CreateUser(ctx context.Context, email string, password string) (*ent.User, error)
- func (_m *BootstrapRepositoryMock) EXPECT() *BootstrapRepositoryMock_Expecter
- func (_m *BootstrapRepositoryMock) IsBootstrapped(ctx context.Context, tx repository.TxInterface) (bool, bool, error)
- type BootstrapRepositoryMock_CreateUser_Call
- func (_c *BootstrapRepositoryMock_CreateUser_Call) Return(user *ent.User, err error) *BootstrapRepositoryMock_CreateUser_Call
- func (_c *BootstrapRepositoryMock_CreateUser_Call) Run(run func(ctx context.Context, email string, password string)) *BootstrapRepositoryMock_CreateUser_Call
- func (_c *BootstrapRepositoryMock_CreateUser_Call) RunAndReturn(run func(context.Context, string, string) (*ent.User, error)) *BootstrapRepositoryMock_CreateUser_Call
- type BootstrapRepositoryMock_Expecter
- type BootstrapRepositoryMock_IsBootstrapped_Call
- func (_c *BootstrapRepositoryMock_IsBootstrapped_Call) Return(userExists bool, isBootstrapped bool, err error) *BootstrapRepositoryMock_IsBootstrapped_Call
- func (_c *BootstrapRepositoryMock_IsBootstrapped_Call) Run(run func(ctx context.Context, tx repository.TxInterface)) *BootstrapRepositoryMock_IsBootstrapped_Call
- func (_c *BootstrapRepositoryMock_IsBootstrapped_Call) RunAndReturn(run func(context.Context, repository.TxInterface) (bool, bool, error)) *BootstrapRepositoryMock_IsBootstrapped_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BootstrapRepositoryMock ¶
BootstrapRepositoryMock is an autogenerated mock type for the BootstrapRepositoryInterface type
func NewBootstrapRepositoryMock ¶
func NewBootstrapRepositoryMock(t interface { mock.TestingT Cleanup(func()) }) *BootstrapRepositoryMock
NewBootstrapRepositoryMock creates a new instance of BootstrapRepositoryMock. 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 (*BootstrapRepositoryMock) CreateUser ¶
func (_m *BootstrapRepositoryMock) CreateUser(ctx context.Context, email string, password string) (*ent.User, error)
CreateUser provides a mock function with given fields: ctx, email, password
func (*BootstrapRepositoryMock) EXPECT ¶
func (_m *BootstrapRepositoryMock) EXPECT() *BootstrapRepositoryMock_Expecter
func (*BootstrapRepositoryMock) IsBootstrapped ¶
func (_m *BootstrapRepositoryMock) IsBootstrapped(ctx context.Context, tx repository.TxInterface) (bool, bool, error)
IsBootstrapped provides a mock function with given fields: ctx, tx
type BootstrapRepositoryMock_CreateUser_Call ¶
BootstrapRepositoryMock_CreateUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateUser'
func (*BootstrapRepositoryMock_CreateUser_Call) Return ¶
func (_c *BootstrapRepositoryMock_CreateUser_Call) Return(user *ent.User, err error) *BootstrapRepositoryMock_CreateUser_Call
func (*BootstrapRepositoryMock_CreateUser_Call) Run ¶
func (_c *BootstrapRepositoryMock_CreateUser_Call) Run(run func(ctx context.Context, email string, password string)) *BootstrapRepositoryMock_CreateUser_Call
func (*BootstrapRepositoryMock_CreateUser_Call) RunAndReturn ¶
func (_c *BootstrapRepositoryMock_CreateUser_Call) RunAndReturn(run func(context.Context, string, string) (*ent.User, error)) *BootstrapRepositoryMock_CreateUser_Call
type BootstrapRepositoryMock_Expecter ¶
type BootstrapRepositoryMock_Expecter struct {
// contains filtered or unexported fields
}
func (*BootstrapRepositoryMock_Expecter) CreateUser ¶
func (_e *BootstrapRepositoryMock_Expecter) CreateUser(ctx interface{}, email interface{}, password interface{}) *BootstrapRepositoryMock_CreateUser_Call
CreateUser is a helper method to define mock.On call
- ctx context.Context
- email string
- password string
func (*BootstrapRepositoryMock_Expecter) IsBootstrapped ¶
func (_e *BootstrapRepositoryMock_Expecter) IsBootstrapped(ctx interface{}, tx interface{}) *BootstrapRepositoryMock_IsBootstrapped_Call
IsBootstrapped is a helper method to define mock.On call
- ctx context.Context
- tx repository.TxInterface
type BootstrapRepositoryMock_IsBootstrapped_Call ¶
BootstrapRepositoryMock_IsBootstrapped_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsBootstrapped'
func (*BootstrapRepositoryMock_IsBootstrapped_Call) Return ¶
func (_c *BootstrapRepositoryMock_IsBootstrapped_Call) Return(userExists bool, isBootstrapped bool, err error) *BootstrapRepositoryMock_IsBootstrapped_Call
func (*BootstrapRepositoryMock_IsBootstrapped_Call) Run ¶
func (_c *BootstrapRepositoryMock_IsBootstrapped_Call) Run(run func(ctx context.Context, tx repository.TxInterface)) *BootstrapRepositoryMock_IsBootstrapped_Call
func (*BootstrapRepositoryMock_IsBootstrapped_Call) RunAndReturn ¶
func (_c *BootstrapRepositoryMock_IsBootstrapped_Call) RunAndReturn(run func(context.Context, repository.TxInterface) (bool, bool, error)) *BootstrapRepositoryMock_IsBootstrapped_Call