Documentation ¶
Overview ¶
Package mocks is a package to mock the application.
That has auto generated code to mock the application.
Index ¶
- type Course
- func (_m *Course) GetCourseDesc() string
- func (_m *Course) GetCourseID() string
- func (_m *Course) GetCourseThumb() string
- func (_m *Course) GetCourseTitle() string
- func (_m *Course) IsCoursePublished() bool
- func (_m *Course) PublishCourse()
- func (_m *Course) SetCourseDesc(courseDesc string)
- func (_m *Course) SetCourseID(courseID string)
- func (_m *Course) SetCourseThumb(courseThumb string)
- func (_m *Course) SetCourseTitle(courseTitle string)
- func (_m *Course) UnpublishCourse()
- type CourseRepository
- func (_m *CourseRepository) Create(course domain.Course) (domain.Course, error)
- func (_m *CourseRepository) Edit(courseID string, updater domain.CourseUpdater) (domain.Course, error)
- func (_m *CourseRepository) GetByID(courseID string) (domain.Course, error)
- func (_m *CourseRepository) GetByStudentID(studentID string) ([]domain.Course, error)
- type CourseUpdater
- type CreateCourse
- type EditCourseInfo
- type GetCourseByID
- type GetCoursesFromStudent
- type Logger
- func (_m *Logger) Debug(args ...interface{})
- func (_m *Logger) Debugf(format string, args ...interface{})
- func (_m *Logger) Debugln(args ...interface{})
- func (_m *Logger) Error(args ...interface{})
- func (_m *Logger) Errorf(format string, args ...interface{})
- func (_m *Logger) Errorln(args ...interface{})
- func (_m *Logger) Fatal(args ...interface{})
- func (_m *Logger) Fatalf(format string, args ...interface{})
- func (_m *Logger) Fatalln(args ...interface{})
- func (_m *Logger) Info(args ...interface{})
- func (_m *Logger) Infof(format string, args ...interface{})
- func (_m *Logger) Infoln(args ...interface{})
- func (_m *Logger) Panic(args ...interface{})
- func (_m *Logger) Panicf(format string, args ...interface{})
- func (_m *Logger) Panicln(args ...interface{})
- func (_m *Logger) Print(args ...interface{})
- func (_m *Logger) Printf(format string, args ...interface{})
- func (_m *Logger) Println(args ...interface{})
- func (_m *Logger) Warn(args ...interface{})
- func (_m *Logger) Warnf(format string, args ...interface{})
- func (_m *Logger) Warning(args ...interface{})
- func (_m *Logger) Warningf(format string, args ...interface{})
- func (_m *Logger) Warningln(args ...interface{})
- func (_m *Logger) Warnln(args ...interface{})
- func (_m *Logger) WithError(err error) *logrus.Entry
- func (_m *Logger) WithField(key string, value interface{}) *logrus.Entry
- func (_m *Logger) WithFields(fields logrus.Fields) *logrus.Entry
- type ModuleErrorMap
- type PublishCourse
- type UnpublishCourse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Course ¶
Course is an autogenerated mock type for the Course type
func (*Course) GetCourseDesc ¶
GetCourseDesc provides a mock function with given fields:
func (*Course) GetCourseID ¶
GetCourseID provides a mock function with given fields:
func (*Course) GetCourseThumb ¶
GetCourseThumb provides a mock function with given fields:
func (*Course) GetCourseTitle ¶
GetCourseTitle provides a mock function with given fields:
func (*Course) IsCoursePublished ¶
IsCoursePublished provides a mock function with given fields:
func (*Course) PublishCourse ¶
func (_m *Course) PublishCourse()
PublishCourse provides a mock function with given fields:
func (*Course) SetCourseDesc ¶
SetCourseDesc provides a mock function with given fields: courseDesc
func (*Course) SetCourseID ¶
SetCourseID provides a mock function with given fields: courseID
func (*Course) SetCourseThumb ¶
SetCourseThumb provides a mock function with given fields: courseThumb
func (*Course) SetCourseTitle ¶
SetCourseTitle provides a mock function with given fields: courseTitle
func (*Course) UnpublishCourse ¶
func (_m *Course) UnpublishCourse()
UnpublishCourse provides a mock function with given fields:
type CourseRepository ¶
CourseRepository is an autogenerated mock type for the CourseRepository type
func (*CourseRepository) Edit ¶
func (_m *CourseRepository) Edit(courseID string, updater domain.CourseUpdater) (domain.Course, error)
Edit provides a mock function with given fields: courseID, updater
func (*CourseRepository) GetByID ¶
func (_m *CourseRepository) GetByID(courseID string) (domain.Course, error)
GetByID provides a mock function with given fields: courseID
func (*CourseRepository) GetByStudentID ¶
func (_m *CourseRepository) GetByStudentID(studentID string) ([]domain.Course, error)
GetByStudentID provides a mock function with given fields: studentID
type CourseUpdater ¶
CourseUpdater is an autogenerated mock type for the CourseUpdater type
type CreateCourse ¶
CreateCourse is an autogenerated mock type for the CreateCourse type
type EditCourseInfo ¶
EditCourseInfo is an autogenerated mock type for the EditCourseInfo type
type GetCourseByID ¶
GetCourseByID is an autogenerated mock type for the GetCourseByID type
type GetCoursesFromStudent ¶
GetCoursesFromStudent is an autogenerated mock type for the GetCoursesFromStudent type
type Logger ¶
Logger is an autogenerated mock type for the Logger type
func (*Logger) Debug ¶
func (_m *Logger) Debug(args ...interface{})
Debug provides a mock function with given fields: args
func (*Logger) Debugln ¶
func (_m *Logger) Debugln(args ...interface{})
Debugln provides a mock function with given fields: args
func (*Logger) Error ¶
func (_m *Logger) Error(args ...interface{})
Error provides a mock function with given fields: args
func (*Logger) Errorln ¶
func (_m *Logger) Errorln(args ...interface{})
Errorln provides a mock function with given fields: args
func (*Logger) Fatal ¶
func (_m *Logger) Fatal(args ...interface{})
Fatal provides a mock function with given fields: args
func (*Logger) Fatalln ¶
func (_m *Logger) Fatalln(args ...interface{})
Fatalln provides a mock function with given fields: args
func (*Logger) Info ¶
func (_m *Logger) Info(args ...interface{})
Info provides a mock function with given fields: args
func (*Logger) Infoln ¶
func (_m *Logger) Infoln(args ...interface{})
Infoln provides a mock function with given fields: args
func (*Logger) Panic ¶
func (_m *Logger) Panic(args ...interface{})
Panic provides a mock function with given fields: args
func (*Logger) Panicln ¶
func (_m *Logger) Panicln(args ...interface{})
Panicln provides a mock function with given fields: args
func (*Logger) Print ¶
func (_m *Logger) Print(args ...interface{})
Print provides a mock function with given fields: args
func (*Logger) Println ¶
func (_m *Logger) Println(args ...interface{})
Println provides a mock function with given fields: args
func (*Logger) Warn ¶
func (_m *Logger) Warn(args ...interface{})
Warn provides a mock function with given fields: args
func (*Logger) Warning ¶
func (_m *Logger) Warning(args ...interface{})
Warning provides a mock function with given fields: args
func (*Logger) Warningln ¶
func (_m *Logger) Warningln(args ...interface{})
Warningln provides a mock function with given fields: args
func (*Logger) Warnln ¶
func (_m *Logger) Warnln(args ...interface{})
Warnln provides a mock function with given fields: args
type ModuleErrorMap ¶
ModuleErrorMap is an autogenerated mock type for the ModuleErrorMap type
func (*ModuleErrorMap) GetErrorMap ¶
func (_m *ModuleErrorMap) GetErrorMap() map[string]map[string]error
GetErrorMap provides a mock function with given fields:
type PublishCourse ¶
PublishCourse is an autogenerated mock type for the PublishCourse type
func (*PublishCourse) Run ¶
func (_m *PublishCourse) Run(courseID string) error
Run provides a mock function with given fields: courseID
type UnpublishCourse ¶
UnpublishCourse is an autogenerated mock type for the UnpublishCourse type
func (*UnpublishCourse) Run ¶
func (_m *UnpublishCourse) Run(courseID string) error
Run provides a mock function with given fields: courseID