Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type AssignmentRepository
- func (m *AssignmentRepository) CheckDuplicates(ctx context.Context, assignments []*domain.Assignment) ([]*domain.Assignment, error)
- func (m *AssignmentRepository) EXPECT() *AssignmentRepositoryMockRecorder
- func (m *AssignmentRepository) FindByFormID(ctx context.Context, formID uuid.UUID) ([]*domain.Assignment, error)
- func (m *AssignmentRepository) FindByGroupID(ctx context.Context, groupID uuid.UUID) ([]*domain.Assignment, error)
- func (m *AssignmentRepository) Save(ctx context.Context, assignments []*domain.Assignment) error
- type AssignmentRepositoryMockRecorder
- func (mr *AssignmentRepositoryMockRecorder) CheckDuplicates(ctx, assignments interface{}) *gomock.Call
- func (mr *AssignmentRepositoryMockRecorder) FindByFormID(ctx, formID interface{}) *gomock.Call
- func (mr *AssignmentRepositoryMockRecorder) FindByGroupID(ctx, groupID interface{}) *gomock.Call
- func (mr *AssignmentRepositoryMockRecorder) Save(ctx, assignments interface{}) *gomock.Call
- type AssignmentService
- func (m *AssignmentService) Create(ctx context.Context, assignment *business.FormAssignment) (*business.AssignmentCreateResponse, error)
- func (m *AssignmentService) EXPECT() *AssignmentServiceMockRecorder
- func (m *AssignmentService) FindByFormID(ctx context.Context, formID uuid.UUID) (*business.FormAssignment, error)
- func (m *AssignmentService) FindByGroupID(ctx context.Context, groupID uuid.UUID) (*business.GroupAssignment, error)
- type AssignmentServiceMockRecorder
- type AuthClientMW
- func (m *AuthClientMW) AmqpMiddleware(arg0 *config.Config, arg1 *slog.Logger) amqp.Middleware
- func (m *AuthClientMW) AnyAccountTypeAuthenticationFunc(ctx context.Context, token string) (context.Context, error)
- func (m *AuthClientMW) AuthenticationUnaryServerInterceptor() ...
- func (m *AuthClientMW) EXPECT() *AuthClientMWMockRecorder
- func (m *AuthClientMW) StudentAccountTypeAuthenticationFunc(ctx context.Context, token string) (context.Context, error)
- func (m *AuthClientMW) TeacherAccountTypeAuthenticationFunc(ctx context.Context, token string) (context.Context, error)
- type AuthClientMWMockRecorder
- func (mr *AuthClientMWMockRecorder) AmqpMiddleware(arg0, arg1 interface{}) *gomock.Call
- func (mr *AuthClientMWMockRecorder) AnyAccountTypeAuthenticationFunc(ctx, token interface{}) *gomock.Call
- func (mr *AuthClientMWMockRecorder) AuthenticationUnaryServerInterceptor() *gomock.Call
- func (mr *AuthClientMWMockRecorder) StudentAccountTypeAuthenticationFunc(ctx, token interface{}) *gomock.Call
- func (mr *AuthClientMWMockRecorder) TeacherAccountTypeAuthenticationFunc(ctx, token interface{}) *gomock.Call
- type Mockrepository
- func (m *Mockrepository) CheckDuplicates(ctx context.Context, assignments []*domain.Assignment) ([]*domain.Assignment, error)
- func (m *Mockrepository) EXPECT() *MockrepositoryMockRecorder
- func (m *Mockrepository) FindByFormID(ctx context.Context, formID uuid.UUID) ([]*domain.Assignment, error)
- func (m *Mockrepository) FindByGroupID(ctx context.Context, groupID uuid.UUID) ([]*domain.Assignment, error)
- func (m *Mockrepository) Save(ctx context.Context, assignment []*domain.Assignment) error
- type MockrepositoryMockRecorder
- func (mr *MockrepositoryMockRecorder) CheckDuplicates(ctx, assignments interface{}) *gomock.Call
- func (mr *MockrepositoryMockRecorder) FindByFormID(ctx, formID interface{}) *gomock.Call
- func (mr *MockrepositoryMockRecorder) FindByGroupID(ctx, groupID interface{}) *gomock.Call
- func (mr *MockrepositoryMockRecorder) Save(ctx, assignment interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssignmentRepository ¶
type AssignmentRepository struct {
// contains filtered or unexported fields
}
AssignmentRepository is a mock of Repository interface.
func NewAssignmentRepository ¶
func NewAssignmentRepository(ctrl *gomock.Controller) *AssignmentRepository
NewAssignmentRepository creates a new mock instance.
func (*AssignmentRepository) CheckDuplicates ¶
func (m *AssignmentRepository) CheckDuplicates(ctx context.Context, assignments []*domain.Assignment) ([]*domain.Assignment, error)
CheckDuplicates mocks base method.
func (*AssignmentRepository) EXPECT ¶
func (m *AssignmentRepository) EXPECT() *AssignmentRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*AssignmentRepository) FindByFormID ¶
func (m *AssignmentRepository) FindByFormID(ctx context.Context, formID uuid.UUID) ([]*domain.Assignment, error)
FindByFormID mocks base method.
func (*AssignmentRepository) FindByGroupID ¶
func (m *AssignmentRepository) FindByGroupID(ctx context.Context, groupID uuid.UUID) ([]*domain.Assignment, error)
FindByGroupID mocks base method.
func (*AssignmentRepository) Save ¶
func (m *AssignmentRepository) Save(ctx context.Context, assignments []*domain.Assignment) error
Save mocks base method.
type AssignmentRepositoryMockRecorder ¶
type AssignmentRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
AssignmentRepositoryMockRecorder is the mock recorder for AssignmentRepository.
func (*AssignmentRepositoryMockRecorder) CheckDuplicates ¶
func (mr *AssignmentRepositoryMockRecorder) CheckDuplicates(ctx, assignments interface{}) *gomock.Call
CheckDuplicates indicates an expected call of CheckDuplicates.
func (*AssignmentRepositoryMockRecorder) FindByFormID ¶
func (mr *AssignmentRepositoryMockRecorder) FindByFormID(ctx, formID interface{}) *gomock.Call
FindByFormID indicates an expected call of FindByFormID.
func (*AssignmentRepositoryMockRecorder) FindByGroupID ¶
func (mr *AssignmentRepositoryMockRecorder) FindByGroupID(ctx, groupID interface{}) *gomock.Call
FindByGroupID indicates an expected call of FindByGroupID.
func (*AssignmentRepositoryMockRecorder) Save ¶
func (mr *AssignmentRepositoryMockRecorder) Save(ctx, assignments interface{}) *gomock.Call
Save indicates an expected call of Save.
type AssignmentService ¶
type AssignmentService struct {
// contains filtered or unexported fields
}
AssignmentService is a mock of Service interface.
func NewAssignmentService ¶
func NewAssignmentService(ctrl *gomock.Controller) *AssignmentService
NewAssignmentService creates a new mock instance.
func (*AssignmentService) Create ¶
func (m *AssignmentService) Create(ctx context.Context, assignment *business.FormAssignment) (*business.AssignmentCreateResponse, error)
Create mocks base method.
func (*AssignmentService) EXPECT ¶
func (m *AssignmentService) EXPECT() *AssignmentServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*AssignmentService) FindByFormID ¶
func (m *AssignmentService) FindByFormID(ctx context.Context, formID uuid.UUID) (*business.FormAssignment, error)
FindByFormID mocks base method.
func (*AssignmentService) FindByGroupID ¶
func (m *AssignmentService) FindByGroupID(ctx context.Context, groupID uuid.UUID) (*business.GroupAssignment, error)
FindByGroupID mocks base method.
type AssignmentServiceMockRecorder ¶
type AssignmentServiceMockRecorder struct {
// contains filtered or unexported fields
}
AssignmentServiceMockRecorder is the mock recorder for AssignmentService.
func (*AssignmentServiceMockRecorder) Create ¶
func (mr *AssignmentServiceMockRecorder) Create(ctx, assignment interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*AssignmentServiceMockRecorder) FindByFormID ¶
func (mr *AssignmentServiceMockRecorder) FindByFormID(ctx, formID interface{}) *gomock.Call
FindByFormID indicates an expected call of FindByFormID.
func (*AssignmentServiceMockRecorder) FindByGroupID ¶
func (mr *AssignmentServiceMockRecorder) FindByGroupID(ctx, groupID interface{}) *gomock.Call
FindByGroupID indicates an expected call of FindByGroupID.
type AuthClientMW ¶
type AuthClientMW struct {
// contains filtered or unexported fields
}
AuthClientMW is a mock of Client interface.
func NewAuthClientMW ¶
func NewAuthClientMW(ctrl *gomock.Controller) *AuthClientMW
NewAuthClientMW creates a new mock instance.
func (*AuthClientMW) AmqpMiddleware ¶
func (m *AuthClientMW) AmqpMiddleware(arg0 *config.Config, arg1 *slog.Logger) amqp.Middleware
AmqpMiddleware mocks base method.
func (*AuthClientMW) AnyAccountTypeAuthenticationFunc ¶
func (m *AuthClientMW) AnyAccountTypeAuthenticationFunc(ctx context.Context, token string) (context.Context, error)
AnyAccountTypeAuthenticationFunc mocks base method.
func (*AuthClientMW) AuthenticationUnaryServerInterceptor ¶
func (m *AuthClientMW) AuthenticationUnaryServerInterceptor() func(context.Context, any, *grpc.UnaryServerInfo, grpc.UnaryHandler) (any, error)
AuthenticationUnaryServerInterceptor mocks base method.
func (*AuthClientMW) EXPECT ¶
func (m *AuthClientMW) EXPECT() *AuthClientMWMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*AuthClientMW) StudentAccountTypeAuthenticationFunc ¶
func (m *AuthClientMW) StudentAccountTypeAuthenticationFunc(ctx context.Context, token string) (context.Context, error)
StudentAccountTypeAuthenticationFunc mocks base method.
func (*AuthClientMW) TeacherAccountTypeAuthenticationFunc ¶
func (m *AuthClientMW) TeacherAccountTypeAuthenticationFunc(ctx context.Context, token string) (context.Context, error)
TeacherAccountTypeAuthenticationFunc mocks base method.
type AuthClientMWMockRecorder ¶
type AuthClientMWMockRecorder struct {
// contains filtered or unexported fields
}
AuthClientMWMockRecorder is the mock recorder for AuthClientMW.
func (*AuthClientMWMockRecorder) AmqpMiddleware ¶
func (mr *AuthClientMWMockRecorder) AmqpMiddleware(arg0, arg1 interface{}) *gomock.Call
AmqpMiddleware indicates an expected call of AmqpMiddleware.
func (*AuthClientMWMockRecorder) AnyAccountTypeAuthenticationFunc ¶
func (mr *AuthClientMWMockRecorder) AnyAccountTypeAuthenticationFunc(ctx, token interface{}) *gomock.Call
AnyAccountTypeAuthenticationFunc indicates an expected call of AnyAccountTypeAuthenticationFunc.
func (*AuthClientMWMockRecorder) AuthenticationUnaryServerInterceptor ¶
func (mr *AuthClientMWMockRecorder) AuthenticationUnaryServerInterceptor() *gomock.Call
AuthenticationUnaryServerInterceptor indicates an expected call of AuthenticationUnaryServerInterceptor.
func (*AuthClientMWMockRecorder) StudentAccountTypeAuthenticationFunc ¶
func (mr *AuthClientMWMockRecorder) StudentAccountTypeAuthenticationFunc(ctx, token interface{}) *gomock.Call
StudentAccountTypeAuthenticationFunc indicates an expected call of StudentAccountTypeAuthenticationFunc.
func (*AuthClientMWMockRecorder) TeacherAccountTypeAuthenticationFunc ¶
func (mr *AuthClientMWMockRecorder) TeacherAccountTypeAuthenticationFunc(ctx, token interface{}) *gomock.Call
TeacherAccountTypeAuthenticationFunc indicates an expected call of TeacherAccountTypeAuthenticationFunc.
type Mockrepository ¶
type Mockrepository struct {
// contains filtered or unexported fields
}
Mockrepository is a mock of repository interface.
func NewMockrepository ¶
func NewMockrepository(ctrl *gomock.Controller) *Mockrepository
NewMockrepository creates a new mock instance.
func (*Mockrepository) CheckDuplicates ¶
func (m *Mockrepository) CheckDuplicates(ctx context.Context, assignments []*domain.Assignment) ([]*domain.Assignment, error)
CheckDuplicates mocks base method.
func (*Mockrepository) EXPECT ¶
func (m *Mockrepository) EXPECT() *MockrepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*Mockrepository) FindByFormID ¶
func (m *Mockrepository) FindByFormID(ctx context.Context, formID uuid.UUID) ([]*domain.Assignment, error)
FindByFormID mocks base method.
func (*Mockrepository) FindByGroupID ¶
func (m *Mockrepository) FindByGroupID(ctx context.Context, groupID uuid.UUID) ([]*domain.Assignment, error)
FindByGroupID mocks base method.
func (*Mockrepository) Save ¶
func (m *Mockrepository) Save(ctx context.Context, assignment []*domain.Assignment) error
Save mocks base method.
type MockrepositoryMockRecorder ¶
type MockrepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockrepositoryMockRecorder is the mock recorder for Mockrepository.
func (*MockrepositoryMockRecorder) CheckDuplicates ¶
func (mr *MockrepositoryMockRecorder) CheckDuplicates(ctx, assignments interface{}) *gomock.Call
CheckDuplicates indicates an expected call of CheckDuplicates.
func (*MockrepositoryMockRecorder) FindByFormID ¶
func (mr *MockrepositoryMockRecorder) FindByFormID(ctx, formID interface{}) *gomock.Call
FindByFormID indicates an expected call of FindByFormID.
func (*MockrepositoryMockRecorder) FindByGroupID ¶
func (mr *MockrepositoryMockRecorder) FindByGroupID(ctx, groupID interface{}) *gomock.Call
FindByGroupID indicates an expected call of FindByGroupID.
func (*MockrepositoryMockRecorder) Save ¶
func (mr *MockrepositoryMockRecorder) Save(ctx, assignment interface{}) *gomock.Call
Save indicates an expected call of Save.