tests

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockChangePasswordUseCase

type MockChangePasswordUseCase struct{ mock.Mock }

func (*MockChangePasswordUseCase) ChangePassword

func (m *MockChangePasswordUseCase) ChangePassword(ctx context.Context, tokenValue string, newPassword string) error

type MockRequestEmailChangeUseCase

type MockRequestEmailChangeUseCase struct{ mock.Mock }

func (*MockRequestEmailChangeUseCase) RequestChange

func (m *MockRequestEmailChangeUseCase) RequestChange(ctx context.Context, userID string, newEmail string, callbackURL *string) error

type MockRequestPasswordResetUseCase

type MockRequestPasswordResetUseCase struct{ mock.Mock }

func (*MockRequestPasswordResetUseCase) RequestReset

func (m *MockRequestPasswordResetUseCase) RequestReset(ctx context.Context, email string, callbackURL *string) error

type MockSendEmailVerificationUseCase

type MockSendEmailVerificationUseCase struct{ mock.Mock }

func (*MockSendEmailVerificationUseCase) Send

func (m *MockSendEmailVerificationUseCase) Send(ctx context.Context, userID string, callbackURL *string) error

type MockSignInUseCase

type MockSignInUseCase struct{ mock.Mock }

func (*MockSignInUseCase) GetSessionByID

func (m *MockSignInUseCase) GetSessionByID(ctx context.Context, sessionID string) (*models.Session, error)

func (*MockSignInUseCase) GetUserByID

func (m *MockSignInUseCase) GetUserByID(ctx context.Context, userID string) (*models.User, error)

func (*MockSignInUseCase) SignIn

func (m *MockSignInUseCase) SignIn(ctx context.Context, email string, password string, callbackURL *string, ipAddress *string, userAgent *string) (*types.SignInResult, error)

type MockSignUpUseCase

type MockSignUpUseCase struct{ mock.Mock }

func (*MockSignUpUseCase) SignUp

func (m *MockSignUpUseCase) SignUp(ctx context.Context, name string, email string, password string, image *string, metadata json.RawMessage, callbackURL *string, ipAddress *string, userAgent *string) (*types.SignUpResult, error)

type MockVerifyEmailUseCase

type MockVerifyEmailUseCase struct{ mock.Mock }

func (*MockVerifyEmailUseCase) VerifyEmail

func (m *MockVerifyEmailUseCase) VerifyEmail(ctx context.Context, tokenStr string) (models.VerificationType, error)

Jump to

Keyboard shortcuts

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