mocks

package
v0.0.0-...-10d5746 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2019 License: AGPL-3.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmailService

type EmailService struct {
	mock.Mock
}

EmailService is an autogenerated mock type for the EmailService type

func (*EmailService) Send

func (_m *EmailService) Send(email emails.Email) error

Send provides a mock function with given fields: email

type Repository

type Repository struct {
	mock.Mock
}

Repository is an autogenerated mock type for the Repository type

func (*Repository) AddFavoriToInspection

func (_m *Repository) AddFavoriToInspection(ctx *domain.UserContext, idInspection int64) error

AddFavoriToInspection provides a mock function with given fields: ctx, idInspection

func (*Repository) CanCloreInspection

func (_m *Repository) CanCloreInspection(ctx *domain.UserContext, idInspection int64) error

CanCloreInspection provides a mock function with given fields: ctx, idInspection

func (*Repository) CanCreateConstat

func (_m *Repository) CanCreateConstat(ctx *domain.UserContext, idPointDeControle int64) error

CanCreateConstat provides a mock function with given fields: ctx, idPointDeControle

func (*Repository) CanCreatePointDeControle

func (_m *Repository) CanCreatePointDeControle(ctx *domain.UserContext, idInspection int64) error

CanCreatePointDeControle provides a mock function with given fields: ctx, idInspection

func (*Repository) CanDeleteConstat

func (_m *Repository) CanDeleteConstat(ctx *domain.UserContext, idPointDeControle int64) error

CanDeleteConstat provides a mock function with given fields: ctx, idPointDeControle

func (*Repository) CanUpdatePointDeControle

func (_m *Repository) CanUpdatePointDeControle(ctx *domain.UserContext, idPointDeControle int64) error

CanUpdatePointDeControle provides a mock function with given fields: ctx, idPointDeControle

func (*Repository) CheckCanCreateSuite

func (_m *Repository) CheckCanCreateSuite(ctx *domain.UserContext, idInspection int64) error

CheckCanCreateSuite provides a mock function with given fields: ctx, idInspection

func (*Repository) CheckCanDeleteSuite

func (_m *Repository) CheckCanDeleteSuite(ctx *domain.UserContext, idInspection int64) (bool, error)

CheckCanDeleteSuite provides a mock function with given fields: ctx, idInspection

func (*Repository) CheckEtatInspection

func (_m *Repository) CheckEtatInspection(idInspection int64, etats []models.EtatInspection) (bool, error)

CheckEtatInspection provides a mock function with given fields: idInspection, etats

func (*Repository) CheckInspecteurAllowedInspection

func (_m *Repository) CheckInspecteurAllowedInspection(ctx *domain.UserContext, idInspection int64) error

CheckInspecteurAllowedInspection provides a mock function with given fields: ctx, idInspection

func (*Repository) CheckInspectionHasNonConformites

func (_m *Repository) CheckInspectionHasNonConformites(idInspection int64) (bool, error)

CheckInspectionHasNonConformites provides a mock function with given fields: idInspection

func (*Repository) CheckUserAllowedMessage

func (_m *Repository) CheckUserAllowedMessage(ctx *domain.UserContext, idMessage int64) (bool, error)

CheckUserAllowedMessage provides a mock function with given fields: ctx, idMessage

func (*Repository) CheckUserAllowedPointDeControle

func (_m *Repository) CheckUserAllowedPointDeControle(ctx *domain.UserContext, idPointDeControle int64) (bool, error)

CheckUserAllowedPointDeControle provides a mock function with given fields: ctx, idPointDeControle

func (*Repository) CheckUserIsRecipient

func (_m *Repository) CheckUserIsRecipient(ctx *domain.UserContext, idMessage int64) (bool, error)

CheckUserIsRecipient provides a mock function with given fields: ctx, idMessage

func (*Repository) CheckUsersInspecteurs

func (_m *Repository) CheckUsersInspecteurs(ids []int64) (bool, error)

CheckUsersInspecteurs provides a mock function with given fields: ids

func (*Repository) CreateCommentaire

func (_m *Repository) CreateCommentaire(ctx *domain.UserContext, idInspection int64, commentaire models.Commentaire) (int64, error)

CreateCommentaire provides a mock function with given fields: ctx, idInspection, commentaire

func (*Repository) CreateConstat

func (_m *Repository) CreateConstat(ctx *domain.UserContext, idPointDeControle int64, constat models.Constat) (int64, error)

CreateConstat provides a mock function with given fields: ctx, idPointDeControle, constat

func (*Repository) CreateEvenement

func (_m *Repository) CreateEvenement(ctx *domain.UserContext, typeEvenement models.TypeEvenement, idInspection int64, data map[string]interface{}) error

CreateEvenement provides a mock function with given fields: ctx, typeEvenement, idInspection, data

func (*Repository) CreateInspection

func (_m *Repository) CreateInspection(ctx *domain.UserContext, inspection models.Inspection) (int64, error)

CreateInspection provides a mock function with given fields: ctx, inspection

func (*Repository) CreateMessage

func (_m *Repository) CreateMessage(ctx *domain.UserContext, idPointDeControle int64, message models.Message) (int64, error)

CreateMessage provides a mock function with given fields: ctx, idPointDeControle, message

func (*Repository) CreatePieceJointe

func (_m *Repository) CreatePieceJointe(pieceJointe models.PieceJointe) (int64, error)

CreatePieceJointe provides a mock function with given fields: pieceJointe

func (*Repository) CreatePointDeControle

func (_m *Repository) CreatePointDeControle(ctx *domain.UserContext, idInspection int64, pointDeControle models.PointDeControle) (int64, error)

CreatePointDeControle provides a mock function with given fields: ctx, idInspection, pointDeControle

func (*Repository) CreateRapport

func (_m *Repository) CreateRapport(idInspection int64, rapport models.Rapport) error

CreateRapport provides a mock function with given fields: idInspection, rapport

func (*Repository) CreateSuite

func (_m *Repository) CreateSuite(ctx *domain.UserContext, idInspection int64, suite models.Suite) (int64, error)

CreateSuite provides a mock function with given fields: ctx, idInspection, suite

func (*Repository) CreateTheme

func (_m *Repository) CreateTheme(theme models.Theme) (int64, error)

CreateTheme provides a mock function with given fields: theme

func (*Repository) DeleteConstat

func (_m *Repository) DeleteConstat(ctx *domain.UserContext, idPointDeControle int64) error

DeleteConstat provides a mock function with given fields: ctx, idPointDeControle

func (*Repository) DeletePointDeControle

func (_m *Repository) DeletePointDeControle(ctx *domain.UserContext, idPointDeControle int64) error

DeletePointDeControle provides a mock function with given fields: ctx, idPointDeControle

func (*Repository) DeleteSuite

func (_m *Repository) DeleteSuite(ctx *domain.UserContext, idInspection int64) error

DeleteSuite provides a mock function with given fields: ctx, idInspection

func (*Repository) DeleteTheme

func (_m *Repository) DeleteTheme(idTheme int64) error

DeleteTheme provides a mock function with given fields: idTheme

func (*Repository) FindEtablissements

FindEtablissements provides a mock function with given fields: ctx, filter

func (*Repository) FindUsers

func (_m *Repository) FindUsers(filters domain.ListUsersFilters) ([]models.User, error)

FindUsers provides a mock function with given fields: filters

func (*Repository) GetEtablissementByID

func (_m *Repository) GetEtablissementByID(ctx *domain.UserContext, id int64) (*models.Etablissement, error)

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

func (*Repository) GetEtatInspectionByPointDeControleID

func (_m *Repository) GetEtatInspectionByPointDeControleID(idPointDeControle int64) (models.EtatInspection, error)

GetEtatInspectionByPointDeControleID provides a mock function with given fields: idPointDeControle

func (*Repository) GetInspectionByID

func (_m *Repository) GetInspectionByID(ctx *domain.UserContext, id int64, filter domain.InspectionFilter) (*models.Inspection, error)

GetInspectionByID provides a mock function with given fields: ctx, id, filter

func (*Repository) GetInspectionTypesConstatsSuiteByID

func (_m *Repository) GetInspectionTypesConstatsSuiteByID(idInspection int64) (*models.Inspection, error)

GetInspectionTypesConstatsSuiteByID provides a mock function with given fields: idInspection

func (*Repository) GetPieceJointe

func (_m *Repository) GetPieceJointe(ctx *domain.UserContext, id int64) (*models.PieceJointe, error)

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

func (*Repository) GetRapport

func (_m *Repository) GetRapport(ctx *domain.UserContext, idInspection int64) (*models.Rapport, error)

GetRapport provides a mock function with given fields: ctx, idInspection

func (*Repository) GetRecapsValidation

func (_m *Repository) GetRecapsValidation(idInspection int64) ([]domain.RecapValidationInspection, error)

GetRecapsValidation provides a mock function with given fields: idInspection

func (*Repository) GetTypeConstatByPointDeControleID

func (_m *Repository) GetTypeConstatByPointDeControleID(idPointDeControle int64) (models.TypeConstat, error)

GetTypeConstatByPointDeControleID provides a mock function with given fields: idPointDeControle

func (*Repository) GetUserByEmail

func (_m *Repository) GetUserByEmail(email string) (*models.User, error)

GetUserByEmail provides a mock function with given fields: email

func (*Repository) GetUserByID

func (_m *Repository) GetUserByID(id int64) (*models.User, error)

GetUserByID provides a mock function with given fields: id

func (*Repository) LireMessage

func (_m *Repository) LireMessage(ctx *domain.UserContext, idMessage int64) error

LireMessage provides a mock function with given fields: ctx, idMessage

func (*Repository) LireNotifications

func (_m *Repository) LireNotifications(ctx *domain.UserContext, ids []int64) error

LireNotifications provides a mock function with given fields: ctx, ids

func (*Repository) ListInspections

func (_m *Repository) ListInspections(ctx *domain.UserContext, filter domain.ListInspectionsFilter) ([]models.Inspection, error)

ListInspections provides a mock function with given fields: ctx, filter

func (*Repository) ListInspectionsEcheancesProches

func (_m *Repository) ListInspectionsEcheancesProches(seuilRappelEcheancservicees float32) ([]domain.InspectionEcheancesProches, error)

ListInspectionsEcheancesProches provides a mock function with given fields: seuilRappelEcheancservicees

func (*Repository) ListInspectionsExpirationDelais

func (_m *Repository) ListInspectionsExpirationDelais() ([]domain.InspectionExpirationDelais, error)

ListInspectionsExpirationDelais provides a mock function with given fields:

func (*Repository) ListInspectionsFavorites

func (_m *Repository) ListInspectionsFavorites(ctx *domain.UserContext) ([]models.Inspection, error)

ListInspectionsFavorites provides a mock function with given fields: ctx

func (*Repository) ListNotifications

func (_m *Repository) ListNotifications(ctx *domain.UserContext, filter *domain.ListNotificationsFilter) ([]models.Notification, error)

ListNotifications provides a mock function with given fields: ctx, filter

func (*Repository) ListNouveauxMessages

func (_m *Repository) ListNouveauxMessages() ([]domain.NouveauxMessagesUser, error)

ListNouveauxMessages provides a mock function with given fields:

func (*Repository) ListThemes

func (_m *Repository) ListThemes() ([]models.Theme, error)

ListThemes provides a mock function with given fields:

func (*Repository) PublishPointDeControle

func (_m *Repository) PublishPointDeControle(ctx *domain.UserContext, idPointDeControle int64) error

PublishPointDeControle provides a mock function with given fields: ctx, idPointDeControle

func (*Repository) RejectInspection

func (_m *Repository) RejectInspection(id int64, motifRejet string) error

RejectInspection provides a mock function with given fields: id, motifRejet

func (*Repository) RemoveFavoriToInspection

func (_m *Repository) RemoveFavoriToInspection(ctx *domain.UserContext, idInspection int64) error

RemoveFavoriToInspection provides a mock function with given fields: ctx, idInspection

func (*Repository) ResolveConstat

func (_m *Repository) ResolveConstat(ctx *domain.UserContext, idPointDeControle int64) error

ResolveConstat provides a mock function with given fields: ctx, idPointDeControle

func (*Repository) UpdateEtatInspection

func (_m *Repository) UpdateEtatInspection(ctx *domain.UserContext, id int64, etat models.EtatInspection) error

UpdateEtatInspection provides a mock function with given fields: ctx, id, etat

func (*Repository) UpdateInspection

func (_m *Repository) UpdateInspection(ctx *domain.UserContext, inspection models.Inspection) error

UpdateInspection provides a mock function with given fields: ctx, inspection

func (*Repository) UpdatePointDeControle

func (_m *Repository) UpdatePointDeControle(ctx *domain.UserContext, idPointDeControle int64, pointDeControle models.PointDeControle) error

UpdatePointDeControle provides a mock function with given fields: ctx, idPointDeControle, pointDeControle

func (*Repository) UpdateRappelsEcheancesEnvoyes

func (_m *Repository) UpdateRappelsEcheancesEnvoyes(constatsIds []int64) error

UpdateRappelsEcheancesEnvoyes provides a mock function with given fields: constatsIds

func (*Repository) UpdateSuite

func (_m *Repository) UpdateSuite(ctx *domain.UserContext, idInspection int64, suite models.Suite) error

UpdateSuite provides a mock function with given fields: ctx, idInspection, suite

func (*Repository) ValidateInspection

func (_m *Repository) ValidateInspection(id int64, etatCible models.EtatInspection) error

ValidateInspection provides a mock function with given fields: id, etatCible

type Storage

type Storage struct {
	mock.Mock
}

Storage is an autogenerated mock type for the Storage type

func (*Storage) Get

func (_m *Storage) Get(id string) (io.Reader, error)

Get provides a mock function with given fields: id

func (*Storage) Put

func (_m *Storage) Put(file models.File) (string, error)

Put provides a mock function with given fields: file

type TemplateService

type TemplateService struct {
	mock.Mock
}

TemplateService is an autogenerated mock type for the TemplateService type

func (*TemplateService) RenderHTMLEmailExpirationDelais

func (_m *TemplateService) RenderHTMLEmailExpirationDelais(data interface{}) (string, error)

RenderHTMLEmailExpirationDelais provides a mock function with given fields: data

func (*TemplateService) RenderHTMLEmailNouveauxMessages

func (_m *TemplateService) RenderHTMLEmailNouveauxMessages(data interface{}) (string, error)

RenderHTMLEmailNouveauxMessages provides a mock function with given fields: data

func (*TemplateService) RenderHTMLEmailRappelEcheances

func (_m *TemplateService) RenderHTMLEmailRappelEcheances(data interface{}) (string, error)

RenderHTMLEmailRappelEcheances provides a mock function with given fields: data

func (*TemplateService) RenderHTMLEmailRecapValidation

func (_m *TemplateService) RenderHTMLEmailRecapValidation(data interface{}) (string, error)

RenderHTMLEmailRecapValidation provides a mock function with given fields: data

func (*TemplateService) RenderLettreAnnonce

func (_m *TemplateService) RenderLettreAnnonce(data interface{}) (string, error)

RenderLettreAnnonce provides a mock function with given fields: data

func (*TemplateService) RenderLettreSuite

func (_m *TemplateService) RenderLettreSuite(data interface{}) (string, error)

RenderLettreSuite provides a mock function with given fields: data

func (*TemplateService) RenderRapport

func (_m *TemplateService) RenderRapport(data interface{}) (string, error)

RenderRapport provides a mock function with given fields: data

Jump to

Keyboard shortcuts

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