mocks

package
v0.0.0-...-e878d2f Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2022 License: LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package mocks is a package to mock the application.

That has auto generated code to mock the application.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Course

type Course struct {
	mock.Mock
}

Course is an autogenerated mock type for the Course type

func (*Course) GetCourseDesc

func (_m *Course) GetCourseDesc() string

GetCourseDesc provides a mock function with given fields:

func (*Course) GetCourseID

func (_m *Course) GetCourseID() string

GetCourseID provides a mock function with given fields:

func (*Course) GetCourseThumb

func (_m *Course) GetCourseThumb() string

GetCourseThumb provides a mock function with given fields:

func (*Course) GetCourseTitle

func (_m *Course) GetCourseTitle() string

GetCourseTitle provides a mock function with given fields:

func (*Course) IsCoursePublished

func (_m *Course) IsCoursePublished() bool

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

func (_m *Course) SetCourseDesc(courseDesc string)

SetCourseDesc provides a mock function with given fields: courseDesc

func (*Course) SetCourseID

func (_m *Course) SetCourseID(courseID string)

SetCourseID provides a mock function with given fields: courseID

func (*Course) SetCourseThumb

func (_m *Course) SetCourseThumb(courseThumb string)

SetCourseThumb provides a mock function with given fields: courseThumb

func (*Course) SetCourseTitle

func (_m *Course) SetCourseTitle(courseTitle string)

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

type CourseRepository struct {
	mock.Mock
}

CourseRepository is an autogenerated mock type for the CourseRepository type

func (*CourseRepository) Create

func (_m *CourseRepository) Create(course domain.Course) (domain.Course, error)

Create provides a mock function with given fields: course

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

type CourseUpdater struct {
	mock.Mock
}

CourseUpdater is an autogenerated mock type for the CourseUpdater type

func (*CourseUpdater) Execute

func (_m *CourseUpdater) Execute(course domain.Course) (domain.Course, error)

Execute provides a mock function with given fields: course

type CreateCourse

type CreateCourse struct {
	mock.Mock
}

CreateCourse is an autogenerated mock type for the CreateCourse type

func (*CreateCourse) Run

func (_m *CreateCourse) Run(course domain.Course) (domain.Course, error)

Run provides a mock function with given fields: course

type EditCourseInfo

type EditCourseInfo struct {
	mock.Mock
}

EditCourseInfo is an autogenerated mock type for the EditCourseInfo type

func (*EditCourseInfo) Run

func (_m *EditCourseInfo) Run(course domain.Course) (domain.Course, error)

Run provides a mock function with given fields: course

type GetCourseByID

type GetCourseByID struct {
	mock.Mock
}

GetCourseByID is an autogenerated mock type for the GetCourseByID type

func (*GetCourseByID) Run

func (_m *GetCourseByID) Run(courseID string) (domain.Course, error)

Run provides a mock function with given fields: courseID

type GetCoursesFromStudent

type GetCoursesFromStudent struct {
	mock.Mock
}

GetCoursesFromStudent is an autogenerated mock type for the GetCoursesFromStudent type

func (*GetCoursesFromStudent) Run

func (_m *GetCoursesFromStudent) Run(studentID string) ([]domain.Course, error)

Run provides a mock function with given fields: studentID

type Logger

type Logger struct {
	mock.Mock
}

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

func (_m *Logger) Debugf(format string, args ...interface{})

Debugf provides a mock function with given fields: format, 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) Errorf

func (_m *Logger) Errorf(format string, args ...interface{})

Errorf provides a mock function with given fields: format, 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) Fatalf

func (_m *Logger) Fatalf(format string, args ...interface{})

Fatalf provides a mock function with given fields: format, 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) Infof

func (_m *Logger) Infof(format string, args ...interface{})

Infof provides a mock function with given fields: format, 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) Panicf

func (_m *Logger) Panicf(format string, args ...interface{})

Panicf provides a mock function with given fields: format, 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) Printf

func (_m *Logger) Printf(format string, args ...interface{})

Printf provides a mock function with given fields: format, 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) Warnf

func (_m *Logger) Warnf(format string, args ...interface{})

Warnf provides a mock function with given fields: format, args

func (*Logger) Warning

func (_m *Logger) Warning(args ...interface{})

Warning provides a mock function with given fields: args

func (*Logger) Warningf

func (_m *Logger) Warningf(format string, args ...interface{})

Warningf provides a mock function with given fields: format, 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

func (*Logger) WithError

func (_m *Logger) WithError(err error) *logrus.Entry

WithError provides a mock function with given fields: err

func (*Logger) WithField

func (_m *Logger) WithField(key string, value interface{}) *logrus.Entry

WithField provides a mock function with given fields: key, value

func (*Logger) WithFields

func (_m *Logger) WithFields(fields logrus.Fields) *logrus.Entry

WithFields provides a mock function with given fields: fields

type ModuleErrorMap

type ModuleErrorMap struct {
	mock.Mock
}

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

type PublishCourse struct {
	mock.Mock
}

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

type UnpublishCourse struct {
	mock.Mock
}

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

Jump to

Keyboard shortcuts

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