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 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 FormRepository
- func (m *FormRepository) EXPECT() *FormRepositoryMockRecorder
- func (m *FormRepository) ExistsByNameAndTeacherUsername(ctx context.Context, formName, teacherUsername string) (bool, error)
- func (m *FormRepository) FindByID(ctx context.Context, formID uuid.UUID) (*domain.Form, error)
- func (m *FormRepository) FindByTeacherUsername(ctx context.Context, teacherUsername string) ([]*domain.Form, error)
- func (m *FormRepository) Save(ctx context.Context, form *domain.Form) error
- type FormRepositoryMockRecorder
- func (mr *FormRepositoryMockRecorder) ExistsByNameAndTeacherUsername(ctx, formName, teacherUsername interface{}) *gomock.Call
- func (mr *FormRepositoryMockRecorder) FindByID(ctx, formID interface{}) *gomock.Call
- func (mr *FormRepositoryMockRecorder) FindByTeacherUsername(ctx, teacherUsername interface{}) *gomock.Call
- func (mr *FormRepositoryMockRecorder) Save(ctx, form interface{}) *gomock.Call
- type FormService
- func (m *FormService) Create(ctx context.Context, form *business.Form) (*business.FormCreateResponse, error)
- func (m *FormService) EXPECT() *FormServiceMockRecorder
- func (m *FormService) FindByID(ctx context.Context, formID uuid.UUID) (*business.Form, error)
- func (m *FormService) FindByTeacherUsername(ctx context.Context, teacherUsername string) ([]*business.Form, error)
- type FormServiceMockRecorder
- type MockformRepository
- func (m *MockformRepository) EXPECT() *MockformRepositoryMockRecorder
- func (m *MockformRepository) ExistsByNameAndTeacherUsername(ctx context.Context, formName, teacherUsername string) (bool, error)
- func (m *MockformRepository) FindByID(ctx context.Context, formID uuid.UUID) (*domain.Form, error)
- func (m *MockformRepository) FindByTeacherUsername(ctx context.Context, teacherUsername string) ([]*domain.Form, error)
- func (m *MockformRepository) Save(ctx context.Context, form *domain.Form) error
- type MockformRepositoryMockRecorder
- func (mr *MockformRepositoryMockRecorder) ExistsByNameAndTeacherUsername(ctx, formName, teacherUsername interface{}) *gomock.Call
- func (mr *MockformRepositoryMockRecorder) FindByID(ctx, formID interface{}) *gomock.Call
- func (mr *MockformRepositoryMockRecorder) FindByTeacherUsername(ctx, teacherUsername interface{}) *gomock.Call
- func (mr *MockformRepositoryMockRecorder) Save(ctx, form interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 FormRepository ¶
type FormRepository struct {
// contains filtered or unexported fields
}
FormRepository is a mock of Repository interface.
func NewFormRepository ¶
func NewFormRepository(ctrl *gomock.Controller) *FormRepository
NewFormRepository creates a new mock instance.
func (*FormRepository) EXPECT ¶
func (m *FormRepository) EXPECT() *FormRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*FormRepository) ExistsByNameAndTeacherUsername ¶
func (m *FormRepository) ExistsByNameAndTeacherUsername(ctx context.Context, formName, teacherUsername string) (bool, error)
ExistsByNameAndTeacherUsername mocks base method.
func (*FormRepository) FindByTeacherUsername ¶
func (m *FormRepository) FindByTeacherUsername(ctx context.Context, teacherUsername string) ([]*domain.Form, error)
FindByTeacherUsername mocks base method.
type FormRepositoryMockRecorder ¶
type FormRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
FormRepositoryMockRecorder is the mock recorder for FormRepository.
func (*FormRepositoryMockRecorder) ExistsByNameAndTeacherUsername ¶
func (mr *FormRepositoryMockRecorder) ExistsByNameAndTeacherUsername(ctx, formName, teacherUsername interface{}) *gomock.Call
ExistsByNameAndTeacherUsername indicates an expected call of ExistsByNameAndTeacherUsername.
func (*FormRepositoryMockRecorder) FindByID ¶
func (mr *FormRepositoryMockRecorder) FindByID(ctx, formID interface{}) *gomock.Call
FindByID indicates an expected call of FindByID.
func (*FormRepositoryMockRecorder) FindByTeacherUsername ¶
func (mr *FormRepositoryMockRecorder) FindByTeacherUsername(ctx, teacherUsername interface{}) *gomock.Call
FindByTeacherUsername indicates an expected call of FindByTeacherUsername.
func (*FormRepositoryMockRecorder) Save ¶
func (mr *FormRepositoryMockRecorder) Save(ctx, form interface{}) *gomock.Call
Save indicates an expected call of Save.
type FormService ¶
type FormService struct {
// contains filtered or unexported fields
}
FormService is a mock of Service interface.
func NewFormService ¶
func NewFormService(ctrl *gomock.Controller) *FormService
NewFormService creates a new mock instance.
func (*FormService) Create ¶
func (m *FormService) Create(ctx context.Context, form *business.Form) (*business.FormCreateResponse, error)
Create mocks base method.
func (*FormService) EXPECT ¶
func (m *FormService) EXPECT() *FormServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*FormService) FindByTeacherUsername ¶
func (m *FormService) FindByTeacherUsername(ctx context.Context, teacherUsername string) ([]*business.Form, error)
FindByTeacherUsername mocks base method.
type FormServiceMockRecorder ¶
type FormServiceMockRecorder struct {
// contains filtered or unexported fields
}
FormServiceMockRecorder is the mock recorder for FormService.
func (*FormServiceMockRecorder) Create ¶
func (mr *FormServiceMockRecorder) Create(ctx, form interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*FormServiceMockRecorder) FindByID ¶
func (mr *FormServiceMockRecorder) FindByID(ctx, formID interface{}) *gomock.Call
FindByID indicates an expected call of FindByID.
func (*FormServiceMockRecorder) FindByTeacherUsername ¶
func (mr *FormServiceMockRecorder) FindByTeacherUsername(ctx, teacherUsername interface{}) *gomock.Call
FindByTeacherUsername indicates an expected call of FindByTeacherUsername.
type MockformRepository ¶
type MockformRepository struct {
// contains filtered or unexported fields
}
MockformRepository is a mock of formRepository interface.
func NewMockformRepository ¶
func NewMockformRepository(ctrl *gomock.Controller) *MockformRepository
NewMockformRepository creates a new mock instance.
func (*MockformRepository) EXPECT ¶
func (m *MockformRepository) EXPECT() *MockformRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockformRepository) ExistsByNameAndTeacherUsername ¶
func (m *MockformRepository) ExistsByNameAndTeacherUsername(ctx context.Context, formName, teacherUsername string) (bool, error)
ExistsByNameAndTeacherUsername mocks base method.
func (*MockformRepository) FindByTeacherUsername ¶
func (m *MockformRepository) FindByTeacherUsername(ctx context.Context, teacherUsername string) ([]*domain.Form, error)
FindByTeacherUsername mocks base method.
type MockformRepositoryMockRecorder ¶
type MockformRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockformRepositoryMockRecorder is the mock recorder for MockformRepository.
func (*MockformRepositoryMockRecorder) ExistsByNameAndTeacherUsername ¶
func (mr *MockformRepositoryMockRecorder) ExistsByNameAndTeacherUsername(ctx, formName, teacherUsername interface{}) *gomock.Call
ExistsByNameAndTeacherUsername indicates an expected call of ExistsByNameAndTeacherUsername.
func (*MockformRepositoryMockRecorder) FindByID ¶
func (mr *MockformRepositoryMockRecorder) FindByID(ctx, formID interface{}) *gomock.Call
FindByID indicates an expected call of FindByID.
func (*MockformRepositoryMockRecorder) FindByTeacherUsername ¶
func (mr *MockformRepositoryMockRecorder) FindByTeacherUsername(ctx, teacherUsername interface{}) *gomock.Call
FindByTeacherUsername indicates an expected call of FindByTeacherUsername.
func (*MockformRepositoryMockRecorder) Save ¶
func (mr *MockformRepositoryMockRecorder) Save(ctx, form interface{}) *gomock.Call
Save indicates an expected call of Save.