mocks

package
v0.0.0-...-2f4d8a3 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Audio

type Audio struct {
	mock.Mock
}

Audio is an autogenerated mock type for the Audio type

func NewAudio

func NewAudio(t testing.TB) *Audio

NewAudio creates a new instance of Audio. It also registers a cleanup function to assert the mocks expectations.

func (*Audio) GetAudioModel

func (_m *Audio) GetAudioModel() domain.AudioModel

GetAudioModel provides a mock function with given fields:

type GuestStudent

type GuestStudent struct {
	mock.Mock
}

GuestStudent is an autogenerated mock type for the GuestStudent type

func NewGuestStudent

func NewGuestStudent(t testing.TB) *GuestStudent

NewGuestStudent creates a new instance of GuestStudent. It also registers a cleanup function to assert the mocks expectations.

func (*GuestStudent) FindWorkbooksFromPublicSpace

func (_m *GuestStudent) FindWorkbooksFromPublicSpace(ctx context.Context, condition domain.WorkbookSearchCondition) (domain.WorkbookSearchResult, error)

FindWorkbooksFromPublicSpace provides a mock function with given fields: ctx, condition

func (*GuestStudent) GetAppUserID

func (_m *GuestStudent) GetAppUserID() userdomain.AppUserID

GetAppUserID provides a mock function with given fields:

func (*GuestStudent) GetCreatedAt

func (_m *GuestStudent) GetCreatedAt() time.Time

GetCreatedAt provides a mock function with given fields:

func (*GuestStudent) GetCreatedBy

func (_m *GuestStudent) GetCreatedBy() uint

GetCreatedBy provides a mock function with given fields:

func (*GuestStudent) GetDefaultSpace

func (_m *GuestStudent) GetDefaultSpace(ctx context.Context) (userservice.Space, error)

GetDefaultSpace provides a mock function with given fields: ctx

func (*GuestStudent) GetID

func (_m *GuestStudent) GetID() uint

GetID provides a mock function with given fields:

func (*GuestStudent) GetLoginID

func (_m *GuestStudent) GetLoginID() string

GetLoginID provides a mock function with given fields:

func (*GuestStudent) GetOrganizationID

func (_m *GuestStudent) GetOrganizationID() userdomain.OrganizationID

GetOrganizationID provides a mock function with given fields:

func (*GuestStudent) GetProperties

func (_m *GuestStudent) GetProperties() map[string]string

GetProperties provides a mock function with given fields:

func (*GuestStudent) GetRoles

func (_m *GuestStudent) GetRoles() []string

GetRoles provides a mock function with given fields:

func (*GuestStudent) GetUpdatedAt

func (_m *GuestStudent) GetUpdatedAt() time.Time

GetUpdatedAt provides a mock function with given fields:

func (*GuestStudent) GetUpdatedBy

func (_m *GuestStudent) GetUpdatedBy() uint

GetUpdatedBy provides a mock function with given fields:

func (*GuestStudent) GetUsername

func (_m *GuestStudent) GetUsername() string

GetUsername provides a mock function with given fields:

func (*GuestStudent) GetVersion

func (_m *GuestStudent) GetVersion() int

GetVersion provides a mock function with given fields:

func (*GuestStudent) IsStudentModel

func (_m *GuestStudent) IsStudentModel() bool

IsStudentModel provides a mock function with given fields:

type Problem

type Problem struct {
	mock.Mock
}

Problem is an autogenerated mock type for the Problem type

func NewProblem

func NewProblem(t testing.TB) *Problem

NewProblem creates a new instance of Problem. It also registers a cleanup function to assert the mocks expectations.

func (*Problem) GetCreatedAt

func (_m *Problem) GetCreatedAt() time.Time

GetCreatedAt provides a mock function with given fields:

func (*Problem) GetCreatedBy

func (_m *Problem) GetCreatedBy() uint

GetCreatedBy provides a mock function with given fields:

func (*Problem) GetID

func (_m *Problem) GetID() uint

GetID provides a mock function with given fields:

func (*Problem) GetNumber

func (_m *Problem) GetNumber() int

GetNumber provides a mock function with given fields:

func (*Problem) GetProblemType

func (_m *Problem) GetProblemType() domain.ProblemTypeName

GetProblemType provides a mock function with given fields:

func (*Problem) GetProperties

func (_m *Problem) GetProperties(ctx context.Context) map[string]interface{}

GetProperties provides a mock function with given fields: ctx

func (*Problem) GetUpdatedAt

func (_m *Problem) GetUpdatedAt() time.Time

GetUpdatedAt provides a mock function with given fields:

func (*Problem) GetUpdatedBy

func (_m *Problem) GetUpdatedBy() uint

GetUpdatedBy provides a mock function with given fields:

func (*Problem) GetVersion

func (_m *Problem) GetVersion() int

GetVersion provides a mock function with given fields:

type ProblemAddParameter

type ProblemAddParameter struct {
	mock.Mock
}

ProblemAddParameter is an autogenerated mock type for the ProblemAddParameter type

func NewProblemAddParameter

func NewProblemAddParameter(t testing.TB) *ProblemAddParameter

NewProblemAddParameter creates a new instance of ProblemAddParameter. It also registers a cleanup function to assert the mocks expectations.

func (*ProblemAddParameter) GetIntProperty

func (_m *ProblemAddParameter) GetIntProperty(name string) (int, error)

GetIntProperty provides a mock function with given fields: name

func (*ProblemAddParameter) GetProperties

func (_m *ProblemAddParameter) GetProperties() map[string]string

GetProperties provides a mock function with given fields:

func (*ProblemAddParameter) GetStringProperty

func (_m *ProblemAddParameter) GetStringProperty(name string) (string, error)

GetStringProperty provides a mock function with given fields: name

func (*ProblemAddParameter) GetWorkbookID

func (_m *ProblemAddParameter) GetWorkbookID() domain.WorkbookID

GetWorkbookID provides a mock function with given fields:

type ProblemQuotaProcessor

type ProblemQuotaProcessor struct {
	mock.Mock
}

ProblemQuotaProcessor is an autogenerated mock type for the ProblemQuotaProcessor type

func NewProblemQuotaProcessor

func NewProblemQuotaProcessor(t testing.TB) *ProblemQuotaProcessor

NewProblemQuotaProcessor creates a new instance of ProblemQuotaProcessor. It also registers a cleanup function to assert the mocks expectations.

func (*ProblemQuotaProcessor) GetLimitForSizeQuota

func (_m *ProblemQuotaProcessor) GetLimitForSizeQuota() int

GetLimitForSizeQuota provides a mock function with given fields:

func (*ProblemQuotaProcessor) GetLimitForUpdateQuota

func (_m *ProblemQuotaProcessor) GetLimitForUpdateQuota() int

GetLimitForUpdateQuota provides a mock function with given fields:

func (*ProblemQuotaProcessor) GetUnitForSizeQuota

func (_m *ProblemQuotaProcessor) GetUnitForSizeQuota() service.QuotaUnit

GetUnitForSizeQuota provides a mock function with given fields:

func (*ProblemQuotaProcessor) GetUnitForUpdateQuota

func (_m *ProblemQuotaProcessor) GetUnitForUpdateQuota() service.QuotaUnit

GetUnitForUpdateQuota provides a mock function with given fields:

type ProblemRepository

type ProblemRepository struct {
	mock.Mock
}

ProblemRepository is an autogenerated mock type for the ProblemRepository type

func NewProblemRepository

func NewProblemRepository(t testing.TB) *ProblemRepository

NewProblemRepository creates a new instance of ProblemRepository. It also registers a cleanup function to assert the mocks expectations.

func (*ProblemRepository) AddProblem

AddProblem provides a mock function with given fields: ctx, operator, param

func (*ProblemRepository) CountProblems

func (_m *ProblemRepository) CountProblems(ctx context.Context, operator domain.StudentModel, workbookID domain.WorkbookID) (int, error)

CountProblems provides a mock function with given fields: ctx, operator, workbookID

func (*ProblemRepository) FindAllProblems

func (_m *ProblemRepository) FindAllProblems(ctx context.Context, operator domain.StudentModel, workbookID domain.WorkbookID) (domain.ProblemSearchResult, error)

FindAllProblems provides a mock function with given fields: ctx, operator, workbookID

func (*ProblemRepository) FindProblemByID

FindProblemByID provides a mock function with given fields: ctx, operator, id

func (*ProblemRepository) FindProblemIDs

func (_m *ProblemRepository) FindProblemIDs(ctx context.Context, operator domain.StudentModel, workbookID domain.WorkbookID) ([]domain.ProblemID, error)

FindProblemIDs provides a mock function with given fields: ctx, operator, workbookID

func (*ProblemRepository) FindProblems

FindProblems provides a mock function with given fields: ctx, operator, param

func (*ProblemRepository) FindProblemsByCustomCondition

func (_m *ProblemRepository) FindProblemsByCustomCondition(ctx context.Context, operator domain.StudentModel, condition interface{}) ([]domain.ProblemModel, error)

FindProblemsByCustomCondition provides a mock function with given fields: ctx, operator, condition

func (*ProblemRepository) FindProblemsByProblemIDs

func (_m *ProblemRepository) FindProblemsByProblemIDs(ctx context.Context, operator domain.StudentModel, param domain.ProblemIDsCondition) (domain.ProblemSearchResult, error)

FindProblemsByProblemIDs provides a mock function with given fields: ctx, operator, param

func (*ProblemRepository) RemoveProblem

RemoveProblem provides a mock function with given fields: ctx, operator, id

func (*ProblemRepository) UpdateProblem

UpdateProblem provides a mock function with given fields: ctx, operator, id, param

func (*ProblemRepository) UpdateProblemProperty

UpdateProblemProperty provides a mock function with given fields: ctx, operator, id, param

type ProblemSearchCondition

type ProblemSearchCondition struct {
	mock.Mock
}

ProblemSearchCondition is an autogenerated mock type for the ProblemSearchCondition type

func NewProblemSearchCondition

func NewProblemSearchCondition(t testing.TB) *ProblemSearchCondition

NewProblemSearchCondition creates a new instance of ProblemSearchCondition. It also registers a cleanup function to assert the mocks expectations.

func (*ProblemSearchCondition) GetKeyword

func (_m *ProblemSearchCondition) GetKeyword() string

GetKeyword provides a mock function with given fields:

func (*ProblemSearchCondition) GetPageNo

func (_m *ProblemSearchCondition) GetPageNo() int

GetPageNo provides a mock function with given fields:

func (*ProblemSearchCondition) GetPageSize

func (_m *ProblemSearchCondition) GetPageSize() int

GetPageSize provides a mock function with given fields:

func (*ProblemSearchCondition) GetWorkbookID

func (_m *ProblemSearchCondition) GetWorkbookID() domain.WorkbookID

GetWorkbookID provides a mock function with given fields:

type ProblemSelectParameter1

type ProblemSelectParameter1 struct {
	mock.Mock
}

ProblemSelectParameter1 is an autogenerated mock type for the ProblemSelectParameter1 type

func NewProblemSelectParameter1

func NewProblemSelectParameter1(t testing.TB) *ProblemSelectParameter1

NewProblemSelectParameter1 creates a new instance of ProblemSelectParameter1. It also registers a cleanup function to assert the mocks expectations.

func (*ProblemSelectParameter1) GetProblemID

func (_m *ProblemSelectParameter1) GetProblemID() domain.ProblemID

GetProblemID provides a mock function with given fields:

func (*ProblemSelectParameter1) GetWorkbookID

func (_m *ProblemSelectParameter1) GetWorkbookID() domain.WorkbookID

GetWorkbookID provides a mock function with given fields:

type ProblemSelectParameter2

type ProblemSelectParameter2 struct {
	mock.Mock
}

ProblemSelectParameter2 is an autogenerated mock type for the ProblemSelectParameter2 type

func NewProblemSelectParameter2

func NewProblemSelectParameter2(t testing.TB) *ProblemSelectParameter2

NewProblemSelectParameter2 creates a new instance of ProblemSelectParameter2. It also registers a cleanup function to assert the mocks expectations.

func (*ProblemSelectParameter2) GetProblemID

func (_m *ProblemSelectParameter2) GetProblemID() domain.ProblemID

GetProblemID provides a mock function with given fields:

func (*ProblemSelectParameter2) GetVersion

func (_m *ProblemSelectParameter2) GetVersion() int

GetVersion provides a mock function with given fields:

func (*ProblemSelectParameter2) GetWorkbookID

func (_m *ProblemSelectParameter2) GetWorkbookID() domain.WorkbookID

GetWorkbookID provides a mock function with given fields:

type ProblemTypeRepository

type ProblemTypeRepository struct {
	mock.Mock
}

ProblemTypeRepository is an autogenerated mock type for the ProblemTypeRepository type

func NewProblemTypeRepository

func NewProblemTypeRepository(t testing.TB) *ProblemTypeRepository

NewProblemTypeRepository creates a new instance of ProblemTypeRepository. It also registers a cleanup function to assert the mocks expectations.

func (*ProblemTypeRepository) FindAllProblemTypes

func (_m *ProblemTypeRepository) FindAllProblemTypes(ctx context.Context) ([]domain.ProblemType, error)

FindAllProblemTypes provides a mock function with given fields: ctx

type ProblemUpdateParameter

type ProblemUpdateParameter struct {
	mock.Mock
}

ProblemUpdateParameter is an autogenerated mock type for the ProblemUpdateParameter type

func NewProblemUpdateParameter

func NewProblemUpdateParameter(t testing.TB) *ProblemUpdateParameter

NewProblemUpdateParameter creates a new instance of ProblemUpdateParameter. It also registers a cleanup function to assert the mocks expectations.

func (*ProblemUpdateParameter) GetIntProperty

func (_m *ProblemUpdateParameter) GetIntProperty(name string) (int, error)

GetIntProperty provides a mock function with given fields: name

func (*ProblemUpdateParameter) GetProperties

func (_m *ProblemUpdateParameter) GetProperties() map[string]string

GetProperties provides a mock function with given fields:

func (*ProblemUpdateParameter) GetStringProperty

func (_m *ProblemUpdateParameter) GetStringProperty(name string) (string, error)

GetStringProperty provides a mock function with given fields: name

type ProcessorFactory

type ProcessorFactory struct {
	mock.Mock
}

ProcessorFactory is an autogenerated mock type for the ProcessorFactory type

func NewProcessorFactory

func NewProcessorFactory(t testing.TB) *ProcessorFactory

NewProcessorFactory creates a new instance of ProcessorFactory. It also registers a cleanup function to assert the mocks expectations.

func (*ProcessorFactory) NewProblemAddProcessor

func (_m *ProcessorFactory) NewProblemAddProcessor(problemType domain.ProblemTypeName) (service.ProblemAddProcessor, error)

NewProblemAddProcessor provides a mock function with given fields: problemType

func (*ProcessorFactory) NewProblemImportProcessor

func (_m *ProcessorFactory) NewProblemImportProcessor(problemType domain.ProblemTypeName) (service.ProblemImportProcessor, error)

NewProblemImportProcessor provides a mock function with given fields: problemType

func (*ProcessorFactory) NewProblemQuotaProcessor

func (_m *ProcessorFactory) NewProblemQuotaProcessor(problemType domain.ProblemTypeName) (service.ProblemQuotaProcessor, error)

NewProblemQuotaProcessor provides a mock function with given fields: problemType

func (*ProcessorFactory) NewProblemRemoveProcessor

func (_m *ProcessorFactory) NewProblemRemoveProcessor(problemType domain.ProblemTypeName) (service.ProblemRemoveProcessor, error)

NewProblemRemoveProcessor provides a mock function with given fields: problemType

func (*ProcessorFactory) NewProblemUpdateProcessor

func (_m *ProcessorFactory) NewProblemUpdateProcessor(problemType domain.ProblemTypeName) (service.ProblemUpdateProcessor, error)

NewProblemUpdateProcessor provides a mock function with given fields: problemType

type Recordbook

type Recordbook struct {
	mock.Mock
}

Recordbook is an autogenerated mock type for the Recordbook type

func NewRecordbook

func NewRecordbook(t testing.TB) *Recordbook

NewRecordbook creates a new instance of Recordbook. It also registers a cleanup function to assert the mocks expectations.

func (*Recordbook) GetResults

func (_m *Recordbook) GetResults(ctx context.Context) (map[domain.ProblemID]domain.StudyRecord, error)

GetResults provides a mock function with given fields: ctx

func (*Recordbook) GetResultsSortedLevel

func (_m *Recordbook) GetResultsSortedLevel(ctx context.Context) ([]domain.StudyRecordWithProblemID, error)

GetResultsSortedLevel provides a mock function with given fields: ctx

func (*Recordbook) GetStudent

func (_m *Recordbook) GetStudent() service.Student

GetStudent provides a mock function with given fields:

func (*Recordbook) GetWorkbookID

func (_m *Recordbook) GetWorkbookID() domain.WorkbookID

GetWorkbookID provides a mock function with given fields:

func (*Recordbook) SetResult

func (_m *Recordbook) SetResult(ctx context.Context, problemType domain.ProblemTypeName, problemID domain.ProblemID, result bool, mastered bool) error

SetResult provides a mock function with given fields: ctx, problemType, problemID, result, mastered

type RecordbookRepository

type RecordbookRepository struct {
	mock.Mock
}

RecordbookRepository is an autogenerated mock type for the RecordbookRepository type

func NewRecordbookRepository

func NewRecordbookRepository(t testing.TB) *RecordbookRepository

NewRecordbookRepository creates a new instance of RecordbookRepository. It also registers a cleanup function to assert the mocks expectations.

func (*RecordbookRepository) CountMasteredProblems

func (_m *RecordbookRepository) CountMasteredProblems(ctx context.Context, operator domain.StudentModel, workbookID domain.WorkbookID) (map[domain.StudyTypeName]int, error)

CountMasteredProblems provides a mock function with given fields: ctx, operator, workbookID

func (*RecordbookRepository) FindStudyRecords

func (_m *RecordbookRepository) FindStudyRecords(ctx context.Context, operator domain.StudentModel, workbookID domain.WorkbookID, studyType domain.StudyTypeName) (map[domain.ProblemID]domain.StudyRecord, error)

FindStudyRecords provides a mock function with given fields: ctx, operator, workbookID, studyType

func (*RecordbookRepository) SetResult

func (_m *RecordbookRepository) SetResult(ctx context.Context, operator domain.StudentModel, workbookID domain.WorkbookID, studyType domain.StudyTypeName, problemType domain.ProblemTypeName, problemID domain.ProblemID, studyResult bool, mastered bool) error

SetResult provides a mock function with given fields: ctx, operator, workbookID, studyType, problemType, problemID, studyResult, mastered

type RepositoryFactory

type RepositoryFactory struct {
	mock.Mock
}

RepositoryFactory is an autogenerated mock type for the RepositoryFactory type

func NewRepositoryFactory

func NewRepositoryFactory(t testing.TB) *RepositoryFactory

NewRepositoryFactory creates a new instance of RepositoryFactory. It also registers a cleanup function to assert the mocks expectations.

func (*RepositoryFactory) NewJobRepositoryFactory

func (_m *RepositoryFactory) NewJobRepositoryFactory(ctx context.Context) (service.RepositoryFactory, error)

NewJobRepositoryFactory provides a mock function with given fields: ctx

func (*RepositoryFactory) NewProblemRepository

func (_m *RepositoryFactory) NewProblemRepository(ctx context.Context, problemType domain.ProblemTypeName) (appservice.ProblemRepository, error)

NewProblemRepository provides a mock function with given fields: ctx, problemType

func (*RepositoryFactory) NewProblemTypeRepository

func (_m *RepositoryFactory) NewProblemTypeRepository(ctx context.Context) appservice.ProblemTypeRepository

NewProblemTypeRepository provides a mock function with given fields: ctx

func (*RepositoryFactory) NewRecordbookRepository

func (_m *RepositoryFactory) NewRecordbookRepository(ctx context.Context) appservice.RecordbookRepository

NewRecordbookRepository provides a mock function with given fields: ctx

func (*RepositoryFactory) NewStatRepository

func (_m *RepositoryFactory) NewStatRepository(ctx context.Context) appservice.StatRepository

NewStatRepository provides a mock function with given fields: ctx

func (*RepositoryFactory) NewStudyRecordRepository

func (_m *RepositoryFactory) NewStudyRecordRepository(ctx context.Context) appservice.StudyRecordRepository

NewStudyRecordRepository provides a mock function with given fields: ctx

func (*RepositoryFactory) NewStudyStatRepository

func (_m *RepositoryFactory) NewStudyStatRepository(ctx context.Context) appservice.StudyStatRepository

NewStudyStatRepository provides a mock function with given fields: ctx

func (*RepositoryFactory) NewStudyTypeRepository

func (_m *RepositoryFactory) NewStudyTypeRepository(ctx context.Context) appservice.StudyTypeRepository

NewStudyTypeRepository provides a mock function with given fields: ctx

func (*RepositoryFactory) NewUserQuotaRepository

func (_m *RepositoryFactory) NewUserQuotaRepository(ctx context.Context) appservice.UserQuotaRepository

NewUserQuotaRepository provides a mock function with given fields: ctx

func (*RepositoryFactory) NewUserRepositoryFactory

func (_m *RepositoryFactory) NewUserRepositoryFactory(ctx context.Context) (userservice.RepositoryFactory, error)

NewUserRepositoryFactory provides a mock function with given fields: ctx

func (*RepositoryFactory) NewWorkbookRepository

func (_m *RepositoryFactory) NewWorkbookRepository(ctx context.Context) appservice.WorkbookRepository

NewWorkbookRepository provides a mock function with given fields: ctx

type Stat

type Stat struct {
	mock.Mock
}

Stat is an autogenerated mock type for the Stat type

func NewStat

func NewStat(t testing.TB) *Stat

NewStat creates a new instance of Stat. It also registers a cleanup function to assert the mocks expectations.

func (*Stat) GetHistory

func (_m *Stat) GetHistory() domain.StatHistory

GetHistory provides a mock function with given fields:

func (*Stat) GetUserID

func (_m *Stat) GetUserID() userdomain.AppUserID

GetUserID provides a mock function with given fields:

type Student

type Student struct {
	mock.Mock
}

Student is an autogenerated mock type for the Student type

func NewStudent

func NewStudent(t testing.TB) *Student

NewStudent creates a new instance of Student. It also registers a cleanup function to assert the mocks expectations.

func (*Student) AddWorkbookToPersonalSpace

func (_m *Student) AddWorkbookToPersonalSpace(ctx context.Context, parameter domain.WorkbookAddParameter) (domain.WorkbookID, error)

AddWorkbookToPersonalSpace provides a mock function with given fields: ctx, parameter

func (*Student) CheckQuota

func (_m *Student) CheckQuota(ctx context.Context, problemType domain.ProblemTypeName, name service.QuotaName) error

CheckQuota provides a mock function with given fields: ctx, problemType, name

func (*Student) FindPreferences

func (_m *Student) FindPreferences(ctx context.Context) (userservice.UserPreferences, error)

FindPreferences provides a mock function with given fields: ctx

func (*Student) FindRecordbook

func (_m *Student) FindRecordbook(ctx context.Context, workbookID domain.WorkbookID, studyType domain.StudyTypeName) (service.Recordbook, error)

FindRecordbook provides a mock function with given fields: ctx, workbookID, studyType

func (*Student) FindRecordbookSummary

func (_m *Student) FindRecordbookSummary(ctx context.Context, workbookID domain.WorkbookID) (service.RecordbookSummary, error)

FindRecordbookSummary provides a mock function with given fields: ctx, workbookID

func (*Student) FindWorkbookByID

func (_m *Student) FindWorkbookByID(ctx context.Context, id domain.WorkbookID) (service.Workbook, error)

FindWorkbookByID provides a mock function with given fields: ctx, id

func (*Student) FindWorkbookByName

func (_m *Student) FindWorkbookByName(ctx context.Context, name string) (service.Workbook, error)

FindWorkbookByName provides a mock function with given fields: ctx, name

func (*Student) FindWorkbooksFromPersonalSpace

func (_m *Student) FindWorkbooksFromPersonalSpace(ctx context.Context, condition domain.WorkbookSearchCondition) (domain.WorkbookSearchResult, error)

FindWorkbooksFromPersonalSpace provides a mock function with given fields: ctx, condition

func (*Student) GetAppUserID

func (_m *Student) GetAppUserID() userdomain.AppUserID

GetAppUserID provides a mock function with given fields:

func (*Student) GetCreatedAt

func (_m *Student) GetCreatedAt() time.Time

GetCreatedAt provides a mock function with given fields:

func (*Student) GetCreatedBy

func (_m *Student) GetCreatedBy() uint

GetCreatedBy provides a mock function with given fields:

func (*Student) GetDefaultSpace

func (_m *Student) GetDefaultSpace(ctx context.Context) (userservice.Space, error)

GetDefaultSpace provides a mock function with given fields: ctx

func (*Student) GetID

func (_m *Student) GetID() uint

GetID provides a mock function with given fields:

func (*Student) GetLoginID

func (_m *Student) GetLoginID() string

GetLoginID provides a mock function with given fields:

func (*Student) GetOrganizationID

func (_m *Student) GetOrganizationID() userdomain.OrganizationID

GetOrganizationID provides a mock function with given fields:

func (*Student) GetPersonalSpace

func (_m *Student) GetPersonalSpace(ctx context.Context) (userservice.Space, error)

GetPersonalSpace provides a mock function with given fields: ctx

func (*Student) GetProperties

func (_m *Student) GetProperties() map[string]string

GetProperties provides a mock function with given fields:

func (*Student) GetRoles

func (_m *Student) GetRoles() []string

GetRoles provides a mock function with given fields:

func (*Student) GetStat

func (_m *Student) GetStat(ctx context.Context) (service.Stat, error)

GetStat provides a mock function with given fields: ctx

func (*Student) GetUpdatedAt

func (_m *Student) GetUpdatedAt() time.Time

GetUpdatedAt provides a mock function with given fields:

func (*Student) GetUpdatedBy

func (_m *Student) GetUpdatedBy() uint

GetUpdatedBy provides a mock function with given fields:

func (*Student) GetUsername

func (_m *Student) GetUsername() string

GetUsername provides a mock function with given fields:

func (*Student) GetVersion

func (_m *Student) GetVersion() int

GetVersion provides a mock function with given fields:

func (*Student) IsStudentModel

func (_m *Student) IsStudentModel() bool

IsStudentModel provides a mock function with given fields:

func (*Student) RemoveWorkbook

func (_m *Student) RemoveWorkbook(ctx context.Context, id domain.WorkbookID, version int) error

RemoveWorkbook provides a mock function with given fields: ctx, id, version

func (*Student) UpdateWorkbook

func (_m *Student) UpdateWorkbook(ctx context.Context, workbookID domain.WorkbookID, version int, parameter domain.WorkbookUpdateParameter) error

UpdateWorkbook provides a mock function with given fields: ctx, workbookID, version, parameter

type StudyRecordRepository

type StudyRecordRepository struct {
	mock.Mock
}

StudyRecordRepository is an autogenerated mock type for the StudyRecordRepository type

func NewStudyRecordRepository

func NewStudyRecordRepository(t testing.TB) *StudyRecordRepository

NewStudyRecordRepository creates a new instance of StudyRecordRepository. It also registers a cleanup function to assert the mocks expectations.

func (*StudyRecordRepository) AddRecord

func (_m *StudyRecordRepository) AddRecord(ctx context.Context, operator domain.StudentModel, workbookID domain.WorkbookID, problemType domain.ProblemTypeName, studyType domain.StudyTypeName, problemID domain.ProblemID, mastered bool) error

AddRecord provides a mock function with given fields: ctx, operator, workbookID, problemType, studyType, problemID, mastered

func (*StudyRecordRepository) CountAnsweredProblems

func (_m *StudyRecordRepository) CountAnsweredProblems(ctx context.Context, operator userdomain.SystemOwnerModel, targetUserID userdomain.AppUserID, targetDate time.Time) (*service.CountAnsweredResults, error)

CountAnsweredProblems provides a mock function with given fields: ctx, operator, targetUserID, targetDate

type StudyTypeRepository

type StudyTypeRepository struct {
	mock.Mock
}

StudyTypeRepository is an autogenerated mock type for the StudyTypeRepository type

func NewStudyTypeRepository

func NewStudyTypeRepository(t testing.TB) *StudyTypeRepository

NewStudyTypeRepository creates a new instance of StudyTypeRepository. It also registers a cleanup function to assert the mocks expectations.

func (*StudyTypeRepository) FindAllStudyTypes

func (_m *StudyTypeRepository) FindAllStudyTypes(ctx context.Context) ([]domain.StudyType, error)

FindAllStudyTypes provides a mock function with given fields: ctx

type SynthesizerClient

type SynthesizerClient struct {
	mock.Mock
}

SynthesizerClient is an autogenerated mock type for the SynthesizerClient type

func NewSynthesizerClient

func NewSynthesizerClient(t testing.TB) *SynthesizerClient

NewSynthesizerClient creates a new instance of SynthesizerClient. It also registers a cleanup function to assert the mocks expectations.

func (*SynthesizerClient) FindAudioByAudioID

func (_m *SynthesizerClient) FindAudioByAudioID(ctx context.Context, audioID domain.AudioID) (service.Audio, error)

FindAudioByAudioID provides a mock function with given fields: ctx, audioID

func (*SynthesizerClient) Synthesize

func (_m *SynthesizerClient) Synthesize(ctx context.Context, lang2 domain.Lang2, text string) (service.Audio, error)

Synthesize provides a mock function with given fields: ctx, lang2, text

type SystemStudent

type SystemStudent struct {
	mock.Mock
}

SystemStudent is an autogenerated mock type for the SystemStudent type

func NewSystemStudent

func NewSystemStudent(t testing.TB) *SystemStudent

NewSystemStudent creates a new instance of SystemStudent. It also registers a cleanup function to assert the mocks expectations.

func (*SystemStudent) AddWorkbookToSystemSpace

func (_m *SystemStudent) AddWorkbookToSystemSpace(ctx context.Context, parameter domain.WorkbookAddParameter) (domain.WorkbookID, error)

AddWorkbookToSystemSpace provides a mock function with given fields: ctx, parameter

func (*SystemStudent) FindWorkbookFromSystemSpace

func (_m *SystemStudent) FindWorkbookFromSystemSpace(ctx context.Context, name string) (service.Workbook, error)

FindWorkbookFromSystemSpace provides a mock function with given fields: ctx, name

func (*SystemStudent) GetAppUserID

func (_m *SystemStudent) GetAppUserID() userdomain.AppUserID

GetAppUserID provides a mock function with given fields:

func (*SystemStudent) GetCreatedAt

func (_m *SystemStudent) GetCreatedAt() time.Time

GetCreatedAt provides a mock function with given fields:

func (*SystemStudent) GetCreatedBy

func (_m *SystemStudent) GetCreatedBy() uint

GetCreatedBy provides a mock function with given fields:

func (*SystemStudent) GetID

func (_m *SystemStudent) GetID() uint

GetID provides a mock function with given fields:

func (*SystemStudent) GetLoginID

func (_m *SystemStudent) GetLoginID() string

GetLoginID provides a mock function with given fields:

func (*SystemStudent) GetOrganizationID

func (_m *SystemStudent) GetOrganizationID() userdomain.OrganizationID

GetOrganizationID provides a mock function with given fields:

func (*SystemStudent) GetProperties

func (_m *SystemStudent) GetProperties() map[string]string

GetProperties provides a mock function with given fields:

func (*SystemStudent) GetRoles

func (_m *SystemStudent) GetRoles() []string

GetRoles provides a mock function with given fields:

func (*SystemStudent) GetUpdatedAt

func (_m *SystemStudent) GetUpdatedAt() time.Time

GetUpdatedAt provides a mock function with given fields:

func (*SystemStudent) GetUpdatedBy

func (_m *SystemStudent) GetUpdatedBy() uint

GetUpdatedBy provides a mock function with given fields:

func (*SystemStudent) GetUsername

func (_m *SystemStudent) GetUsername() string

GetUsername provides a mock function with given fields:

func (*SystemStudent) GetVersion

func (_m *SystemStudent) GetVersion() int

GetVersion provides a mock function with given fields:

func (*SystemStudent) IsSystemStudentModel

func (_m *SystemStudent) IsSystemStudentModel() bool

IsSystemStudentModel provides a mock function with given fields:

type Transaction

type Transaction struct {
	mock.Mock
}

Transaction is an autogenerated mock type for the Transaction type

func NewTransaction

func NewTransaction(t testing.TB) *Transaction

NewTransaction creates a new instance of Transaction. It also registers a cleanup function to assert the mocks expectations.

func (*Transaction) Do

Do provides a mock function with given fields: ctx, fn

type UserQuotaRepository

type UserQuotaRepository struct {
	mock.Mock
}

UserQuotaRepository is an autogenerated mock type for the UserQuotaRepository type

func NewUserQuotaRepository

func NewUserQuotaRepository(t testing.TB) *UserQuotaRepository

NewUserQuotaRepository creates a new instance of UserQuotaRepository. It also registers a cleanup function to assert the mocks expectations.

func (*UserQuotaRepository) Increment

func (_m *UserQuotaRepository) Increment(ctx context.Context, organizationID domain.OrganizationID, appUserID domain.AppUserID, name string, unit service.QuotaUnit, limit int, count int) (bool, error)

Increment provides a mock function with given fields: ctx, organizationID, appUserID, name, unit, limit, count

func (*UserQuotaRepository) IsExceeded

func (_m *UserQuotaRepository) IsExceeded(ctx context.Context, organizationID domain.OrganizationID, appUserID domain.AppUserID, name string, unit service.QuotaUnit, limit int) (bool, error)

IsExceeded provides a mock function with given fields: ctx, organizationID, appUserID, name, unit, limit

type Workbook

type Workbook struct {
	mock.Mock
}

Workbook is an autogenerated mock type for the Workbook type

func NewWorkbook

func NewWorkbook(t testing.TB) *Workbook

NewWorkbook creates a new instance of Workbook. It also registers a cleanup function to assert the mocks expectations.

func (*Workbook) AddProblem

AddProblem provides a mock function with given fields: ctx, operator, param

func (*Workbook) CountProblems

func (_m *Workbook) CountProblems(ctx context.Context, operator domain.StudentModel) (int, error)

CountProblems provides a mock function with given fields: ctx, operator

func (*Workbook) FindAllProblems

func (_m *Workbook) FindAllProblems(ctx context.Context, operator domain.StudentModel) (domain.ProblemSearchResult, error)

FindAllProblems provides a mock function with given fields: ctx, operator

func (*Workbook) FindProblemByID

func (_m *Workbook) FindProblemByID(ctx context.Context, operator domain.StudentModel, problemID domain.ProblemID) (service.Problem, error)

FindProblemByID provides a mock function with given fields: ctx, operator, problemID

func (*Workbook) FindProblemIDs

func (_m *Workbook) FindProblemIDs(ctx context.Context, operator domain.StudentModel) ([]domain.ProblemID, error)

FindProblemIDs provides a mock function with given fields: ctx, operator

func (*Workbook) FindProblems

FindProblems provides a mock function with given fields: ctx, operator, param

func (*Workbook) FindProblemsByProblemIDs

func (_m *Workbook) FindProblemsByProblemIDs(ctx context.Context, operator domain.StudentModel, param domain.ProblemIDsCondition) (domain.ProblemSearchResult, error)

FindProblemsByProblemIDs provides a mock function with given fields: ctx, operator, param

func (*Workbook) GetCreatedAt

func (_m *Workbook) GetCreatedAt() time.Time

GetCreatedAt provides a mock function with given fields:

func (*Workbook) GetCreatedBy

func (_m *Workbook) GetCreatedBy() uint

GetCreatedBy provides a mock function with given fields:

func (*Workbook) GetID

func (_m *Workbook) GetID() uint

GetID provides a mock function with given fields:

func (*Workbook) GetLang2

func (_m *Workbook) GetLang2() domain.Lang2

GetLang2 provides a mock function with given fields:

func (*Workbook) GetName

func (_m *Workbook) GetName() string

GetName provides a mock function with given fields:

func (*Workbook) GetOwnerID

func (_m *Workbook) GetOwnerID() userdomain.AppUserID

GetOwnerID provides a mock function with given fields:

func (*Workbook) GetProblemType

func (_m *Workbook) GetProblemType() domain.ProblemTypeName

GetProblemType provides a mock function with given fields:

func (*Workbook) GetProperties

func (_m *Workbook) GetProperties() map[string]string

GetProperties provides a mock function with given fields:

func (*Workbook) GetQuestionText

func (_m *Workbook) GetQuestionText() string

GetQuestionText provides a mock function with given fields:

func (*Workbook) GetSpaceID

func (_m *Workbook) GetSpaceID() userdomain.SpaceID

GetSpaceID provides a mock function with given fields:

func (*Workbook) GetUpdatedAt

func (_m *Workbook) GetUpdatedAt() time.Time

GetUpdatedAt provides a mock function with given fields:

func (*Workbook) GetUpdatedBy

func (_m *Workbook) GetUpdatedBy() uint

GetUpdatedBy provides a mock function with given fields:

func (*Workbook) GetVersion

func (_m *Workbook) GetVersion() int

GetVersion provides a mock function with given fields:

func (*Workbook) GetWorkbookID

func (_m *Workbook) GetWorkbookID() domain.WorkbookID

GetWorkbookID provides a mock function with given fields:

func (*Workbook) HasPrivilege

func (_m *Workbook) HasPrivilege(privilege userdomain.RBACAction) bool

HasPrivilege provides a mock function with given fields: privilege

func (*Workbook) RemoveProblem

RemoveProblem provides a mock function with given fields: ctx, operator, id

func (*Workbook) RemoveWorkbook

func (_m *Workbook) RemoveWorkbook(ctx context.Context, operator domain.StudentModel, version int) error

RemoveWorkbook provides a mock function with given fields: ctx, operator, version

func (*Workbook) UpdateProblem

UpdateProblem provides a mock function with given fields: ctx, operator, id, param

func (*Workbook) UpdateProblemProperty

UpdateProblemProperty provides a mock function with given fields: ctx, operator, id, param

func (*Workbook) UpdateWorkbook

func (_m *Workbook) UpdateWorkbook(ctx context.Context, operator domain.StudentModel, version int, parameter domain.WorkbookUpdateParameter) error

UpdateWorkbook provides a mock function with given fields: ctx, operator, version, parameter

type WorkbookAddParameter

type WorkbookAddParameter struct {
	mock.Mock
}

WorkbookAddParameter is an autogenerated mock type for the WorkbookAddParameter type

func NewWorkbookAddParameter

func NewWorkbookAddParameter(t testing.TB) *WorkbookAddParameter

NewWorkbookAddParameter creates a new instance of WorkbookAddParameter. It also registers a cleanup function to assert the mocks expectations.

func (*WorkbookAddParameter) GetLang2

func (_m *WorkbookAddParameter) GetLang2() domain.Lang2

GetLang2 provides a mock function with given fields:

func (*WorkbookAddParameter) GetName

func (_m *WorkbookAddParameter) GetName() string

GetName provides a mock function with given fields:

func (*WorkbookAddParameter) GetProblemType

func (_m *WorkbookAddParameter) GetProblemType() domain.ProblemTypeName

GetProblemType provides a mock function with given fields:

func (*WorkbookAddParameter) GetProperties

func (_m *WorkbookAddParameter) GetProperties() map[string]string

GetProperties provides a mock function with given fields:

func (*WorkbookAddParameter) GetQuestionText

func (_m *WorkbookAddParameter) GetQuestionText() string

GetQuestionText provides a mock function with given fields:

type WorkbookRepository

type WorkbookRepository struct {
	mock.Mock
}

WorkbookRepository is an autogenerated mock type for the WorkbookRepository type

func NewWorkbookRepository

func NewWorkbookRepository(t testing.TB) *WorkbookRepository

NewWorkbookRepository creates a new instance of WorkbookRepository. It also registers a cleanup function to assert the mocks expectations.

func (*WorkbookRepository) AddWorkbook

AddWorkbook provides a mock function with given fields: ctx, operator, spaceID, param

func (*WorkbookRepository) FindPersonalWorkbooks

FindPersonalWorkbooks provides a mock function with given fields: ctx, operator, param

func (*WorkbookRepository) FindWorkbookByID

FindWorkbookByID provides a mock function with given fields: ctx, operator, id

func (*WorkbookRepository) FindWorkbookByName

func (_m *WorkbookRepository) FindWorkbookByName(ctx context.Context, operator domain.AppUserModel, spaceID domain.SpaceID, name string) (service.Workbook, error)

FindWorkbookByName provides a mock function with given fields: ctx, operator, spaceID, name

func (*WorkbookRepository) RemoveWorkbook

func (_m *WorkbookRepository) RemoveWorkbook(ctx context.Context, operator appdomain.StudentModel, workbookID appdomain.WorkbookID, version int) error

RemoveWorkbook provides a mock function with given fields: ctx, operator, workbookID, version

func (*WorkbookRepository) UpdateWorkbook

func (_m *WorkbookRepository) UpdateWorkbook(ctx context.Context, operator appdomain.StudentModel, workbookID appdomain.WorkbookID, version int, param appdomain.WorkbookUpdateParameter) error

UpdateWorkbook provides a mock function with given fields: ctx, operator, workbookID, version, param

type WorkbookSearchCondition

type WorkbookSearchCondition struct {
	mock.Mock
}

WorkbookSearchCondition is an autogenerated mock type for the WorkbookSearchCondition type

func NewWorkbookSearchCondition

func NewWorkbookSearchCondition(t testing.TB) *WorkbookSearchCondition

NewWorkbookSearchCondition creates a new instance of WorkbookSearchCondition. It also registers a cleanup function to assert the mocks expectations.

func (*WorkbookSearchCondition) GetPageNo

func (_m *WorkbookSearchCondition) GetPageNo() int

GetPageNo provides a mock function with given fields:

func (*WorkbookSearchCondition) GetPageSize

func (_m *WorkbookSearchCondition) GetPageSize() int

GetPageSize provides a mock function with given fields:

func (*WorkbookSearchCondition) GetSpaceIDs

func (_m *WorkbookSearchCondition) GetSpaceIDs() []domain.SpaceID

GetSpaceIDs provides a mock function with given fields:

type WorkbookSearchResult

type WorkbookSearchResult struct {
	mock.Mock
}

WorkbookSearchResult is an autogenerated mock type for the WorkbookSearchResult type

func NewWorkbookSearchResult

func NewWorkbookSearchResult(t testing.TB) *WorkbookSearchResult

NewWorkbookSearchResult creates a new instance of WorkbookSearchResult. It also registers a cleanup function to assert the mocks expectations.

func (*WorkbookSearchResult) GetResults

func (_m *WorkbookSearchResult) GetResults() []domain.WorkbookModel

GetResults provides a mock function with given fields:

func (*WorkbookSearchResult) GetTotalCount

func (_m *WorkbookSearchResult) GetTotalCount() int

GetTotalCount provides a mock function with given fields:

type WorkbookUpdateParameter

type WorkbookUpdateParameter struct {
	mock.Mock
}

WorkbookUpdateParameter is an autogenerated mock type for the WorkbookUpdateParameter type

func NewWorkbookUpdateParameter

func NewWorkbookUpdateParameter(t testing.TB) *WorkbookUpdateParameter

NewWorkbookUpdateParameter creates a new instance of WorkbookUpdateParameter. It also registers a cleanup function to assert the mocks expectations.

func (*WorkbookUpdateParameter) GetName

func (_m *WorkbookUpdateParameter) GetName() string

GetName provides a mock function with given fields:

func (*WorkbookUpdateParameter) GetQuestionText

func (_m *WorkbookUpdateParameter) GetQuestionText() string

GetQuestionText provides a mock function with given fields:

Jump to

Keyboard shortcuts

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