mocks_repository_bootstrap

package
v0.0.19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BootstrapRepositoryMock

type BootstrapRepositoryMock struct {
	mock.Mock
}

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 (*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

type BootstrapRepositoryMock_CreateUser_Call struct {
	*mock.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 (*BootstrapRepositoryMock_CreateUser_Call) Run

func (*BootstrapRepositoryMock_CreateUser_Call) RunAndReturn

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

type BootstrapRepositoryMock_IsBootstrapped_Call struct {
	*mock.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 (*BootstrapRepositoryMock_IsBootstrapped_Call) Run

func (*BootstrapRepositoryMock_IsBootstrapped_Call) RunAndReturn

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL