mock_usecase

package
v0.0.0-...-c5655d5 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mock_usecase is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAuthRepository

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

MockAuthRepository is a mock of AuthRepository interface.

func NewMockAuthRepository

func NewMockAuthRepository(ctrl *gomock.Controller) *MockAuthRepository

NewMockAuthRepository creates a new mock instance.

func (*MockAuthRepository) Create

func (m *MockAuthRepository) Create(arg0 context.Context, arg1 entity.User) (int, error)

Create mocks base method.

func (*MockAuthRepository) EXPECT

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

func (*MockAuthRepository) GetUser

func (m *MockAuthRepository) GetUser(arg0 context.Context, arg1, arg2 string) (*entity.User, error)

GetUser mocks base method.

type MockAuthRepositoryMockRecorder

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

MockAuthRepositoryMockRecorder is the mock recorder for MockAuthRepository.

func (*MockAuthRepositoryMockRecorder) Create

func (mr *MockAuthRepositoryMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockAuthRepositoryMockRecorder) GetUser

func (mr *MockAuthRepositoryMockRecorder) GetUser(arg0, arg1, arg2 interface{}) *gomock.Call

GetUser indicates an expected call of GetUser.

type MockIncidentRepository

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

MockIncidentRepository is a mock of IncidentRepository interface.

func NewMockIncidentRepository

func NewMockIncidentRepository(ctrl *gomock.Controller) *MockIncidentRepository

NewMockIncidentRepository creates a new mock instance.

func (*MockIncidentRepository) Create

func (m *MockIncidentRepository) Create(arg0 context.Context, arg1 entity.Incident) (int, error)

Create mocks base method.

func (*MockIncidentRepository) Delete

func (m *MockIncidentRepository) Delete(arg0 context.Context, arg1 int) error

Delete mocks base method.

func (*MockIncidentRepository) EXPECT

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

func (*MockIncidentRepository) GetAll

GetAll mocks base method.

func (*MockIncidentRepository) GetById

func (m *MockIncidentRepository) GetById(arg0 context.Context, arg1 int) (*entity.Incident, error)

GetById mocks base method.

func (*MockIncidentRepository) GetByType

func (m *MockIncidentRepository) GetByType(arg0 context.Context, arg1 int) ([]entity.Incident, error)

GetByType mocks base method.

func (*MockIncidentRepository) Update

Update mocks base method.

type MockIncidentRepositoryMockRecorder

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

MockIncidentRepositoryMockRecorder is the mock recorder for MockIncidentRepository.

func (*MockIncidentRepositoryMockRecorder) Create

func (mr *MockIncidentRepositoryMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockIncidentRepositoryMockRecorder) Delete

func (mr *MockIncidentRepositoryMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockIncidentRepositoryMockRecorder) GetAll

func (mr *MockIncidentRepositoryMockRecorder) GetAll(arg0 interface{}) *gomock.Call

GetAll indicates an expected call of GetAll.

func (*MockIncidentRepositoryMockRecorder) GetById

func (mr *MockIncidentRepositoryMockRecorder) GetById(arg0, arg1 interface{}) *gomock.Call

GetById indicates an expected call of GetById.

func (*MockIncidentRepositoryMockRecorder) GetByType

func (mr *MockIncidentRepositoryMockRecorder) GetByType(arg0, arg1 interface{}) *gomock.Call

GetByType indicates an expected call of GetByType.

func (*MockIncidentRepositoryMockRecorder) Update

func (mr *MockIncidentRepositoryMockRecorder) Update(arg0, arg1 interface{}) *gomock.Call

Update indicates an expected call of Update.

type MockRoleRepository

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

MockRoleRepository is a mock of RoleRepository interface.

func NewMockRoleRepository

func NewMockRoleRepository(ctrl *gomock.Controller) *MockRoleRepository

NewMockRoleRepository creates a new mock instance.

func (*MockRoleRepository) Create

func (m *MockRoleRepository) Create(arg0 context.Context, arg1 entity.UserRole) (int, error)

Create mocks base method.

func (*MockRoleRepository) Delete

func (m *MockRoleRepository) Delete(arg0 context.Context, arg1 int) error

Delete mocks base method.

func (*MockRoleRepository) EXPECT

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

func (*MockRoleRepository) GetAll

func (m *MockRoleRepository) GetAll(arg0 context.Context) ([]entity.UserRole, error)

GetAll mocks base method.

func (*MockRoleRepository) GetById

func (m *MockRoleRepository) GetById(arg0 context.Context, arg1 int) (*entity.UserRole, error)

GetById mocks base method.

func (*MockRoleRepository) Update

func (m *MockRoleRepository) Update(arg0 context.Context, arg1 int, arg2 entity.UserRole) error

Update mocks base method.

type MockRoleRepositoryMockRecorder

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

MockRoleRepositoryMockRecorder is the mock recorder for MockRoleRepository.

func (*MockRoleRepositoryMockRecorder) Create

func (mr *MockRoleRepositoryMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockRoleRepositoryMockRecorder) Delete

func (mr *MockRoleRepositoryMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockRoleRepositoryMockRecorder) GetAll

func (mr *MockRoleRepositoryMockRecorder) GetAll(arg0 interface{}) *gomock.Call

GetAll indicates an expected call of GetAll.

func (*MockRoleRepositoryMockRecorder) GetById

func (mr *MockRoleRepositoryMockRecorder) GetById(arg0, arg1 interface{}) *gomock.Call

GetById indicates an expected call of GetById.

func (*MockRoleRepositoryMockRecorder) Update

func (mr *MockRoleRepositoryMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call

Update indicates an expected call of Update.

type MockStatusRepository

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

MockStatusRepository is a mock of StatusRepository interface.

func NewMockStatusRepository

func NewMockStatusRepository(ctrl *gomock.Controller) *MockStatusRepository

NewMockStatusRepository creates a new mock instance.

func (*MockStatusRepository) Create

Create mocks base method.

func (*MockStatusRepository) Delete

func (m *MockStatusRepository) Delete(arg0 context.Context, arg1 int) error

Delete mocks base method.

func (*MockStatusRepository) EXPECT

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

func (*MockStatusRepository) GetAll

GetAll mocks base method.

func (*MockStatusRepository) GetById

func (m *MockStatusRepository) GetById(arg0 context.Context, arg1 int) (*entity.IncidentStatus, error)

GetById mocks base method.

func (*MockStatusRepository) Update

func (m *MockStatusRepository) Update(arg0 context.Context, arg1 int, arg2 entity.IncidentStatus) error

Update mocks base method.

type MockStatusRepositoryMockRecorder

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

MockStatusRepositoryMockRecorder is the mock recorder for MockStatusRepository.

func (*MockStatusRepositoryMockRecorder) Create

func (mr *MockStatusRepositoryMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockStatusRepositoryMockRecorder) Delete

func (mr *MockStatusRepositoryMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockStatusRepositoryMockRecorder) GetAll

func (mr *MockStatusRepositoryMockRecorder) GetAll(arg0 interface{}) *gomock.Call

GetAll indicates an expected call of GetAll.

func (*MockStatusRepositoryMockRecorder) GetById

func (mr *MockStatusRepositoryMockRecorder) GetById(arg0, arg1 interface{}) *gomock.Call

GetById indicates an expected call of GetById.

func (*MockStatusRepositoryMockRecorder) Update

func (mr *MockStatusRepositoryMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call

Update indicates an expected call of Update.

type MockTokenizer

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

MockTokenizer is a mock of Tokenizer interface.

func NewMockTokenizer

func NewMockTokenizer(ctrl *gomock.Controller) *MockTokenizer

NewMockTokenizer creates a new mock instance.

func (*MockTokenizer) EXPECT

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

func (*MockTokenizer) GenerateToken

func (m *MockTokenizer) GenerateToken(ctx context.Context, id, role int) (string, error)

GenerateToken mocks base method.

func (*MockTokenizer) ParseToken

func (m *MockTokenizer) ParseToken(arg0 context.Context, arg1 string) (int, int, error)

ParseToken mocks base method.

type MockTokenizerMockRecorder

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

MockTokenizerMockRecorder is the mock recorder for MockTokenizer.

func (*MockTokenizerMockRecorder) GenerateToken

func (mr *MockTokenizerMockRecorder) GenerateToken(ctx, id, role interface{}) *gomock.Call

GenerateToken indicates an expected call of GenerateToken.

func (*MockTokenizerMockRecorder) ParseToken

func (mr *MockTokenizerMockRecorder) ParseToken(arg0, arg1 interface{}) *gomock.Call

ParseToken indicates an expected call of ParseToken.

type MockTypeRepository

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

MockTypeRepository is a mock of TypeRepository interface.

func NewMockTypeRepository

func NewMockTypeRepository(ctrl *gomock.Controller) *MockTypeRepository

NewMockTypeRepository creates a new mock instance.

func (*MockTypeRepository) Create

func (m *MockTypeRepository) Create(arg0 context.Context, arg1 entity.IncidentType) (int, error)

Create mocks base method.

func (*MockTypeRepository) Delete

func (m *MockTypeRepository) Delete(arg0 context.Context, arg1 int) error

Delete mocks base method.

func (*MockTypeRepository) EXPECT

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

func (*MockTypeRepository) GetAll

GetAll mocks base method.

func (*MockTypeRepository) GetById

func (m *MockTypeRepository) GetById(arg0 context.Context, arg1 int) (*entity.IncidentType, error)

GetById mocks base method.

func (*MockTypeRepository) Update

func (m *MockTypeRepository) Update(arg0 context.Context, arg1 int, arg2 entity.IncidentType) error

Update mocks base method.

type MockTypeRepositoryMockRecorder

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

MockTypeRepositoryMockRecorder is the mock recorder for MockTypeRepository.

func (*MockTypeRepositoryMockRecorder) Create

func (mr *MockTypeRepositoryMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockTypeRepositoryMockRecorder) Delete

func (mr *MockTypeRepositoryMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockTypeRepositoryMockRecorder) GetAll

func (mr *MockTypeRepositoryMockRecorder) GetAll(arg0 interface{}) *gomock.Call

GetAll indicates an expected call of GetAll.

func (*MockTypeRepositoryMockRecorder) GetById

func (mr *MockTypeRepositoryMockRecorder) GetById(arg0, arg1 interface{}) *gomock.Call

GetById indicates an expected call of GetById.

func (*MockTypeRepositoryMockRecorder) Update

func (mr *MockTypeRepositoryMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call

Update indicates an expected call of Update.

type MockUserRepository

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

MockUserRepository is a mock of UserRepository interface.

func NewMockUserRepository

func NewMockUserRepository(ctrl *gomock.Controller) *MockUserRepository

NewMockUserRepository creates a new mock instance.

func (*MockUserRepository) ChangeRole

func (m *MockUserRepository) ChangeRole(arg0 context.Context, arg1, arg2 int) error

ChangeRole mocks base method.

func (*MockUserRepository) Delete

func (m *MockUserRepository) Delete(arg0 context.Context, arg1 int) error

Delete mocks base method.

func (*MockUserRepository) EXPECT

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

func (*MockUserRepository) GetAll

func (m *MockUserRepository) GetAll(arg0 context.Context) ([]entity.User, error)

GetAll mocks base method.

func (*MockUserRepository) GetById

func (m *MockUserRepository) GetById(arg0 context.Context, arg1 int) (*entity.User, error)

GetById mocks base method.

func (*MockUserRepository) Update

func (m *MockUserRepository) Update(arg0 context.Context, arg1 int, arg2 entity.User) error

Update mocks base method.

type MockUserRepositoryMockRecorder

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

MockUserRepositoryMockRecorder is the mock recorder for MockUserRepository.

func (*MockUserRepositoryMockRecorder) ChangeRole

func (mr *MockUserRepositoryMockRecorder) ChangeRole(arg0, arg1, arg2 interface{}) *gomock.Call

ChangeRole indicates an expected call of ChangeRole.

func (*MockUserRepositoryMockRecorder) Delete

func (mr *MockUserRepositoryMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockUserRepositoryMockRecorder) GetAll

func (mr *MockUserRepositoryMockRecorder) GetAll(arg0 interface{}) *gomock.Call

GetAll indicates an expected call of GetAll.

func (*MockUserRepositoryMockRecorder) GetById

func (mr *MockUserRepositoryMockRecorder) GetById(arg0, arg1 interface{}) *gomock.Call

GetById indicates an expected call of GetById.

func (*MockUserRepositoryMockRecorder) Update

func (mr *MockUserRepositoryMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call

Update indicates an expected call of Update.

Jump to

Keyboard shortcuts

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