mocks

package
v0.0.0-...-6436baa Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockImageRepository

type MockImageRepository struct {
	mock.Mock
}

MockImageRepository Mock type of models.ImageRepository

func (*MockImageRepository) DeleteProfile

func (m *MockImageRepository) DeleteProfile(ctx context.Context, objName string) error

DeleteProfile Mock of models.ImageRepository DeleteProfile

func (*MockImageRepository) UpdateProfile

func (m *MockImageRepository) UpdateProfile(ctx context.Context, objName string, imageFile multipart.File) (string, error)

UpdateProfile Mock of models.ImageRepository UpdateProfile

type MockTokenRepository

type MockTokenRepository struct {
	mock.Mock
}

MockTokenRepository Mock type for models.TokenRepository

func (*MockTokenRepository) DeleteRefreshToken

func (m *MockTokenRepository) DeleteRefreshToken(ctx context.Context, userID string, prevTokenID string) error

DeleteRefreshToken Mock of models.TokenRepository DeleteRefreshToken

func (*MockTokenRepository) DeleteUserRefreshTokens

func (m *MockTokenRepository) DeleteUserRefreshTokens(ctx context.Context, userID string) error

DeleteUserRefreshTokens Mock of models.TokenRepository DeleteUserRefreshTokens

func (*MockTokenRepository) SetRefreshToken

func (m *MockTokenRepository) SetRefreshToken(ctx context.Context, userID string, tokenID string, expiresIn time.Duration) error

SetRefreshToken Mock of models.TokenRepository SetRefreshToken

type MockTokenService

type MockTokenService struct {
	mock.Mock
}

MockTokenService Mock type for models.TokenService

func (*MockTokenService) NewPairFromUser

func (m *MockTokenService) NewPairFromUser(ctx context.Context, u *models.User, prevTokenID string) (*models.TokenPair, error)

NewPairFromUser Mock of models.TokenService NewPairFromUser

func (*MockTokenService) Signout

func (m *MockTokenService) Signout(ctx context.Context, uid uuid.UUID) error

Signout Mock of models.TokenService Signout

func (*MockTokenService) ValidateIDToken

func (m *MockTokenService) ValidateIDToken(tokenString string) (*models.User, error)

ValidateIDToken Mock of models.TokenService ValidateIDToken

func (*MockTokenService) ValidateRefreshToken

func (m *MockTokenService) ValidateRefreshToken(refreshTokenString string) (*models.RefreshToken, error)

ValidateRefreshToken Mock of models.TokenService ValidateRefreshToken

type MockUserRepository

type MockUserRepository struct {
	mock.Mock
}

MockUserRepository Mock type for models.UserRepository

func (*MockUserRepository) Create

func (m *MockUserRepository) Create(ctx context.Context, u *models.User) error

Create Mock of models.UserRepository Create

func (*MockUserRepository) FindByEmail

func (m *MockUserRepository) FindByEmail(ctx context.Context, email string) (*models.User, error)

FindByEmail Mock of models.UserRepository FindByEmail

func (*MockUserRepository) FindByID

func (m *MockUserRepository) FindByID(ctx context.Context, uid uuid.UUID) (*models.User, error)

FindByID Mock of models.UserRepository FindByID

func (*MockUserRepository) Update

func (m *MockUserRepository) Update(ctx context.Context, u *models.User) error

Update Mock of models.UserRepository Update

func (*MockUserRepository) UpdateImage

func (m *MockUserRepository) UpdateImage(ctx context.Context, uid uuid.UUID, imageURL string) (*models.User, error)

UpdateImage Mock of models.UserRepository UpdateImage

type MockUserService

type MockUserService struct {
	mock.Mock
}

MockUserService Mock type for models.UserService

func (*MockUserService) ClearProfileImage

func (m *MockUserService) ClearProfileImage(ctx context.Context, uid uuid.UUID) error

ClearProfileImage Mock of models.UserService ClearProfileImage

func (*MockUserService) Get

func (m *MockUserService) Get(ctx context.Context, uid uuid.UUID) (*models.User, error)

Get Mock of models.UserService Get

func (*MockUserService) SetProfileImage

func (m *MockUserService) SetProfileImage(ctx context.Context, uid uuid.UUID, imageFileHeader *multipart.FileHeader) (*models.User, error)

SetProfileImage Mock of models.UserService SetProfileImage

func (*MockUserService) Signin

func (m *MockUserService) Signin(ctx context.Context, u *models.User) error

Signin Mock of models.UserService Signin

func (*MockUserService) Signup

func (m *MockUserService) Signup(ctx context.Context, u *models.User) error

Signup Mock of models.UserService Signup

func (*MockUserService) UpdateDetails

func (m *MockUserService) UpdateDetails(ctx context.Context, u *models.User) error

UpdateDetails Mock of models.UserService UpdateDetails

Jump to

Keyboard shortcuts

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