mocks

package
v0.0.0-...-41e3a0e Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ICoursRepository

type ICoursRepository struct {
	mock.Mock
}

ICoursRepository is an autogenerated mock type for the ICoursRepository type

func NewICoursRepository

func NewICoursRepository(t mockConstructorTestingTNewICoursRepository) *ICoursRepository

NewICoursRepository creates a new instance of ICoursRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ICoursRepository) CreateCours

func (_m *ICoursRepository) CreateCours(cours models.CoursModel) error

CreateCours provides a mock function with given fields: cours

func (*ICoursRepository) GetCours

func (_m *ICoursRepository) GetCours(userID string) (*models.CoursModel, error)

GetCours provides a mock function with given fields: userID

func (*ICoursRepository) UpdateCours

func (_m *ICoursRepository) UpdateCours(cours models.CoursModel) error

UpdateCours provides a mock function with given fields: cours

type ICoursService

type ICoursService struct {
	mock.Mock
}

ICoursService is an autogenerated mock type for the ICoursService type

func NewICoursService

func NewICoursService(t mockConstructorTestingTNewICoursService) *ICoursService

NewICoursService creates a new instance of ICoursService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ICoursService) AddCours

func (_m *ICoursService) AddCours(userID string, value uint) error

AddCours provides a mock function with given fields: userID, value

func (*ICoursService) GetCours

func (_m *ICoursService) GetCours(userID string) (*models.CoursModel, error)

GetCours provides a mock function with given fields: userID

func (*ICoursService) RemoveCours

func (_m *ICoursService) RemoveCours(userID string, value uint) error

RemoveCours provides a mock function with given fields: userID, value

type IKarmaRepository

type IKarmaRepository struct {
	mock.Mock
}

IKarmaRepository is an autogenerated mock type for the IKarmaRepository type

func NewIKarmaRepository

func NewIKarmaRepository(t mockConstructorTestingTNewIKarmaRepository) *IKarmaRepository

NewIKarmaRepository creates a new instance of IKarmaRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*IKarmaRepository) CreateKarma

func (_m *IKarmaRepository) CreateKarma(karma models.Karma) error

CreateKarma provides a mock function with given fields: karma

func (*IKarmaRepository) GetKarma

func (_m *IKarmaRepository) GetKarma(userID string, guildID string) (*models.Karma, error)

GetKarma provides a mock function with given fields: userID, guildID

func (*IKarmaRepository) UpdateKarma

func (_m *IKarmaRepository) UpdateKarma(karma models.Karma) error

UpdateKarma provides a mock function with given fields: karma

type IKarmaService

type IKarmaService struct {
	mock.Mock
}

IKarmaService is an autogenerated mock type for the IKarmaService type

func NewIKarmaService

func NewIKarmaService(t mockConstructorTestingTNewIKarmaService) *IKarmaService

NewIKarmaService creates a new instance of IKarmaService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*IKarmaService) AddKarma

func (_m *IKarmaService) AddKarma(userID string, guildID string, amount uint) (*models.Karma, error)

AddKarma provides a mock function with given fields: userID, guildID, amount

func (*IKarmaService) CreateKarma

func (_m *IKarmaService) CreateKarma(karma models.Karma) error

CreateKarma provides a mock function with given fields: karma

func (*IKarmaService) GetKarma

func (_m *IKarmaService) GetKarma(userID string, guildID string) (*models.Karma, error)

GetKarma provides a mock function with given fields: userID, guildID

func (*IKarmaService) UpdateKarma

func (_m *IKarmaService) UpdateKarma(karma models.Karma) error

UpdateKarma provides a mock function with given fields: karma

Jump to

Keyboard shortcuts

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