mocks

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockIAuthService

type MockIAuthService struct {
	// contains filtered or unexported fields
}

MockIAuthService is a mock of IAuthService interface

func NewMockIAuthService

func NewMockIAuthService(ctrl *gomock.Controller) *MockIAuthService

NewMockIAuthService creates a new mock instance

func (*MockIAuthService) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockIAuthService) Login

Login mocks base method

func (*MockIAuthService) Logout

func (_m *MockIAuthService) Logout(ctx context.Context) error

Logout mocks base method

func (*MockIAuthService) Refresh

Refresh mocks base method

func (*MockIAuthService) Register

Register mocks base method

type MockIAuthServiceMockRecorder

type MockIAuthServiceMockRecorder struct {
	// contains filtered or unexported fields
}

MockIAuthServiceMockRecorder is the mock recorder for MockIAuthService

func (*MockIAuthServiceMockRecorder) Login

func (_mr *MockIAuthServiceMockRecorder) Login(arg0, arg1 interface{}) *gomock.Call

Login indicates an expected call of Login

func (*MockIAuthServiceMockRecorder) Logout

func (_mr *MockIAuthServiceMockRecorder) Logout(arg0 interface{}) *gomock.Call

Logout indicates an expected call of Logout

func (*MockIAuthServiceMockRecorder) Refresh

func (_mr *MockIAuthServiceMockRecorder) Refresh(arg0, arg1 interface{}) *gomock.Call

Refresh indicates an expected call of Refresh

func (*MockIAuthServiceMockRecorder) Register

func (_mr *MockIAuthServiceMockRecorder) Register(arg0, arg1 interface{}) *gomock.Call

Register indicates an expected call of Register

type MockIDatabase

type MockIDatabase struct {
	// contains filtered or unexported fields
}

MockIDatabase is a mock of IDatabase interface

func NewMockIDatabase

func NewMockIDatabase(ctrl *gomock.Controller) *MockIDatabase

NewMockIDatabase creates a new mock instance

func (*MockIDatabase) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockIDatabase) GetInstance

func (_m *MockIDatabase) GetInstance() *gorm.DB

GetInstance mocks base method

type MockIDatabaseMockRecorder

type MockIDatabaseMockRecorder struct {
	// contains filtered or unexported fields
}

MockIDatabaseMockRecorder is the mock recorder for MockIDatabase

func (*MockIDatabaseMockRecorder) GetInstance

func (_mr *MockIDatabaseMockRecorder) GetInstance() *gomock.Call

GetInstance indicates an expected call of GetInstance

type MockIRoleRepository

type MockIRoleRepository struct {
	// contains filtered or unexported fields
}

MockIRoleRepository is a mock of IRoleRepository interface

func NewMockIRoleRepository

func NewMockIRoleRepository(ctrl *gomock.Controller) *MockIRoleRepository

NewMockIRoleRepository creates a new mock instance

func (*MockIRoleRepository) Create

func (_m *MockIRoleRepository) Create(role *models.Role) error

Create mocks base method

func (*MockIRoleRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockIRoleRepository) GetByName

func (_m *MockIRoleRepository) GetByName(name string) (*models.Role, error)

GetByName mocks base method

type MockIRoleRepositoryMockRecorder

type MockIRoleRepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockIRoleRepositoryMockRecorder is the mock recorder for MockIRoleRepository

func (*MockIRoleRepositoryMockRecorder) Create

func (_mr *MockIRoleRepositoryMockRecorder) Create(arg0 interface{}) *gomock.Call

Create indicates an expected call of Create

func (*MockIRoleRepositoryMockRecorder) GetByName

func (_mr *MockIRoleRepositoryMockRecorder) GetByName(arg0 interface{}) *gomock.Call

GetByName indicates an expected call of GetByName

type MockIRoleService

type MockIRoleService struct {
	// contains filtered or unexported fields
}

MockIRoleService is a mock of IRoleService interface

func NewMockIRoleService

func NewMockIRoleService(ctrl *gomock.Controller) *MockIRoleService

NewMockIRoleService creates a new mock instance

func (*MockIRoleService) Create

CreateRole mocks base method

func (*MockIRoleService) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

type MockIRoleServiceMockRecorder

type MockIRoleServiceMockRecorder struct {
	// contains filtered or unexported fields
}

MockIRoleServiceMockRecorder is the mock recorder for MockIRoleService

func (*MockIRoleServiceMockRecorder) CreateRole

func (_mr *MockIRoleServiceMockRecorder) CreateRole(arg0, arg1 interface{}) *gomock.Call

CreateRole indicates an expected call of CreateRole

type MockIUserRepository

type MockIUserRepository struct {
	// contains filtered or unexported fields
}

MockIUserRepository is a mock of IUserRepository interface

func NewMockIUserRepository

func NewMockIUserRepository(ctrl *gomock.Controller) *MockIUserRepository

NewMockIUserRepository creates a new mock instance

func (*MockIUserRepository) Create

func (_m *MockIUserRepository) Create(user *models.User) error

Create mocks base method

func (*MockIUserRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockIUserRepository) GetByID

func (_m *MockIUserRepository) GetByID(id string) (*models.User, error)

GetByID mocks base method

func (*MockIUserRepository) GetUserByToken

func (_m *MockIUserRepository) GetUserByToken(token string) (*models.User, error)

GetUserByToken mocks base method

func (*MockIUserRepository) List

func (_m *MockIUserRepository) List(queryParam *schema.UserQueryParam) (*[]models.User, error)

List mocks base method

func (*MockIUserRepository) Login

Login mocks base method

func (*MockIUserRepository) RemoveToken

func (_m *MockIUserRepository) RemoveToken(userId string) (*models.User, error)

RemoveToken mocks base method

func (*MockIUserRepository) Update

func (_m *MockIUserRepository) Update(userId string, bodyParam *schema.UserUpdateBodyParam) (*models.User, error)

Update mocks base method

type MockIUserRepositoryMockRecorder

type MockIUserRepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockIUserRepositoryMockRecorder is the mock recorder for MockIUserRepository

func (*MockIUserRepositoryMockRecorder) Create

func (_mr *MockIUserRepositoryMockRecorder) Create(arg0 interface{}) *gomock.Call

Create indicates an expected call of Create

func (*MockIUserRepositoryMockRecorder) GetByID

func (_mr *MockIUserRepositoryMockRecorder) GetByID(arg0 interface{}) *gomock.Call

GetByID indicates an expected call of GetByID

func (*MockIUserRepositoryMockRecorder) GetUserByToken

func (_mr *MockIUserRepositoryMockRecorder) GetUserByToken(arg0 interface{}) *gomock.Call

GetUserByToken indicates an expected call of GetUserByToken

func (*MockIUserRepositoryMockRecorder) List

func (_mr *MockIUserRepositoryMockRecorder) List(arg0 interface{}) *gomock.Call

List indicates an expected call of List

func (*MockIUserRepositoryMockRecorder) Login

func (_mr *MockIUserRepositoryMockRecorder) Login(arg0 interface{}) *gomock.Call

Login indicates an expected call of Login

func (*MockIUserRepositoryMockRecorder) RemoveToken

func (_mr *MockIUserRepositoryMockRecorder) RemoveToken(arg0 interface{}) *gomock.Call

RemoveToken indicates an expected call of RemoveToken

func (*MockIUserRepositoryMockRecorder) Update

func (_mr *MockIUserRepositoryMockRecorder) Update(arg0, arg1 interface{}) *gomock.Call

Update indicates an expected call of Update

type MockIUserService

type MockIUserService struct {
	// contains filtered or unexported fields
}

MockIUserService is a mock of IUserService interface

func NewMockIUserService

func NewMockIUserService(ctrl *gomock.Controller) *MockIUserService

NewMockIUserService creates a new mock instance

func (*MockIUserService) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockIUserService) GetByID

func (_m *MockIUserService) GetByID(ctx context.Context, id string) (*models.User, error)

GetByID mocks base method

func (*MockIUserService) List

func (_m *MockIUserService) List(ctx context.Context, param *schema.UserQueryParam) (*[]models.User, error)

List mocks base method

type MockIUserServiceMockRecorder

type MockIUserServiceMockRecorder struct {
	// contains filtered or unexported fields
}

MockIUserServiceMockRecorder is the mock recorder for MockIUserService

func (*MockIUserServiceMockRecorder) GetByID

func (_mr *MockIUserServiceMockRecorder) GetByID(arg0, arg1 interface{}) *gomock.Call

GetByID indicates an expected call of GetByID

func (*MockIUserServiceMockRecorder) List

func (_mr *MockIUserServiceMockRecorder) List(arg0, arg1 interface{}) *gomock.Call

List indicates an expected call of List

Jump to

Keyboard shortcuts

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