mocks

package
v0.0.0-...-9eaf9d2 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AudioModel

type AudioModel struct {
	mock.Mock
}

AudioModel is an autogenerated mock type for the AudioModel type

func NewAudioModel

func NewAudioModel(t testing.TB) *AudioModel

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

func (*AudioModel) GetContent

func (_m *AudioModel) GetContent() string

GetContent provides a mock function with given fields:

func (*AudioModel) GetID

func (_m *AudioModel) GetID() uint

GetID provides a mock function with given fields:

func (*AudioModel) GetLang2

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

GetLang2 provides a mock function with given fields:

func (*AudioModel) GetText

func (_m *AudioModel) GetText() string

GetText provides a mock function with given fields:

type ProblemModel

type ProblemModel struct {
	mock.Mock
}

ProblemModel is an autogenerated mock type for the ProblemModel type

func NewProblemModel

func NewProblemModel(t testing.TB) *ProblemModel

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

func (*ProblemModel) GetCreatedAt

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

GetCreatedAt provides a mock function with given fields:

func (*ProblemModel) GetCreatedBy

func (_m *ProblemModel) GetCreatedBy() uint

GetCreatedBy provides a mock function with given fields:

func (*ProblemModel) GetID

func (_m *ProblemModel) GetID() uint

GetID provides a mock function with given fields:

func (*ProblemModel) GetNumber

func (_m *ProblemModel) GetNumber() int

GetNumber provides a mock function with given fields:

func (*ProblemModel) GetProblemType

func (_m *ProblemModel) GetProblemType() string

GetProblemType provides a mock function with given fields:

func (*ProblemModel) GetProperties

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

GetProperties provides a mock function with given fields: ctx

func (*ProblemModel) GetUpdatedAt

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

GetUpdatedAt provides a mock function with given fields:

func (*ProblemModel) GetUpdatedBy

func (_m *ProblemModel) GetUpdatedBy() uint

GetUpdatedBy provides a mock function with given fields:

func (*ProblemModel) GetVersion

func (_m *ProblemModel) GetVersion() int

GetVersion provides a mock function with given fields:

type StudentModel

type StudentModel struct {
	mock.Mock
}

StudentModel is an autogenerated mock type for the StudentModel type

func NewStudentModel

func NewStudentModel(t testing.TB) *StudentModel

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

func (*StudentModel) GetID

func (_m *StudentModel) GetID() uint

GetID provides a mock function with given fields:

func (*StudentModel) GetLoginID

func (_m *StudentModel) GetLoginID() string

GetLoginID provides a mock function with given fields:

func (*StudentModel) GetOrganizationID

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

GetOrganizationID provides a mock function with given fields:

func (*StudentModel) GetProperties

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

GetProperties provides a mock function with given fields:

func (*StudentModel) GetRoles

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

GetRoles provides a mock function with given fields:

func (*StudentModel) GetUsername

func (_m *StudentModel) GetUsername() string

GetUsername provides a mock function with given fields:

type StudyType

type StudyType struct {
	mock.Mock
}

StudyType is an autogenerated mock type for the StudyType type

func NewStudyType

func NewStudyType(t testing.TB) *StudyType

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

func (*StudyType) GetID

func (_m *StudyType) GetID() uint

GetID provides a mock function with given fields:

func (*StudyType) GetName

func (_m *StudyType) GetName() string

GetName provides a mock function with given fields:

type SystemStudentModel

type SystemStudentModel struct {
	mock.Mock
}

SystemStudentModel is an autogenerated mock type for the SystemStudentModel type

func NewSystemStudentModel

func NewSystemStudentModel(t testing.TB) *SystemStudentModel

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

func (*SystemStudentModel) GetID

func (_m *SystemStudentModel) GetID() uint

GetID provides a mock function with given fields:

func (*SystemStudentModel) GetLoginID

func (_m *SystemStudentModel) GetLoginID() string

GetLoginID provides a mock function with given fields:

func (*SystemStudentModel) GetOrganizationID

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

GetOrganizationID provides a mock function with given fields:

func (*SystemStudentModel) GetProperties

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

GetProperties provides a mock function with given fields:

func (*SystemStudentModel) GetRoles

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

GetRoles provides a mock function with given fields:

func (*SystemStudentModel) GetUsername

func (_m *SystemStudentModel) GetUsername() string

GetUsername provides a mock function with given fields:

type WorkbookModel

type WorkbookModel struct {
	mock.Mock
}

WorkbookModel is an autogenerated mock type for the WorkbookModel type

func NewWorkbookModel

func NewWorkbookModel(t testing.TB) *WorkbookModel

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

func (*WorkbookModel) GetCreatedAt

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

GetCreatedAt provides a mock function with given fields:

func (*WorkbookModel) GetCreatedBy

func (_m *WorkbookModel) GetCreatedBy() uint

GetCreatedBy provides a mock function with given fields:

func (*WorkbookModel) GetID

func (_m *WorkbookModel) GetID() uint

GetID provides a mock function with given fields:

func (*WorkbookModel) GetLang2

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

GetLang2 provides a mock function with given fields:

func (*WorkbookModel) GetName

func (_m *WorkbookModel) GetName() string

GetName provides a mock function with given fields:

func (*WorkbookModel) GetOwnerID

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

GetOwnerID provides a mock function with given fields:

func (*WorkbookModel) GetProblemType

func (_m *WorkbookModel) GetProblemType() string

GetProblemType provides a mock function with given fields:

func (*WorkbookModel) GetProperties

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

GetProperties provides a mock function with given fields:

func (*WorkbookModel) GetQuestionText

func (_m *WorkbookModel) GetQuestionText() string

GetQuestionText provides a mock function with given fields:

func (*WorkbookModel) GetSpaceID

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

GetSpaceID provides a mock function with given fields:

func (*WorkbookModel) GetUpdatedAt

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

GetUpdatedAt provides a mock function with given fields:

func (*WorkbookModel) GetUpdatedBy

func (_m *WorkbookModel) GetUpdatedBy() uint

GetUpdatedBy provides a mock function with given fields:

func (*WorkbookModel) GetVersion

func (_m *WorkbookModel) GetVersion() int

GetVersion provides a mock function with given fields:

func (*WorkbookModel) HasPrivilege

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

HasPrivilege provides a mock function with given fields: privilege

Jump to

Keyboard shortcuts

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