mocks

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

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

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

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) FindByID

func (m *FormRepository) FindByID(ctx context.Context, formID uuid.UUID) (*domain.Form, error)

FindByID mocks base method.

func (*FormRepository) FindByTeacherUsername

func (m *FormRepository) FindByTeacherUsername(ctx context.Context, teacherUsername string) ([]*domain.Form, error)

FindByTeacherUsername mocks base method.

func (*FormRepository) Save

func (m *FormRepository) Save(ctx context.Context, form *domain.Form) error

Save 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

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) FindByID

func (m *FormService) FindByID(ctx context.Context, formID uuid.UUID) (*business.Form, error)

FindByID mocks base method.

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

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) FindByID

func (m *MockformRepository) FindByID(ctx context.Context, formID uuid.UUID) (*domain.Form, error)

FindByID mocks base method.

func (*MockformRepository) FindByTeacherUsername

func (m *MockformRepository) FindByTeacherUsername(ctx context.Context, teacherUsername string) ([]*domain.Form, error)

FindByTeacherUsername mocks base method.

func (*MockformRepository) Save

func (m *MockformRepository) Save(ctx context.Context, form *domain.Form) error

Save 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.

Jump to

Keyboard shortcuts

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