mocks

package
v0.0.0-...-ea873bd Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebsiteStatusChecker

type WebsiteStatusChecker struct {
	mock.Mock
}

WebsiteStatusChecker is an autogenerated mock type for the WebsiteStatusChecker type

func NewWebsiteStatusChecker

func NewWebsiteStatusChecker(t mockConstructorTestingTNewWebsiteStatusChecker) *WebsiteStatusChecker

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

func (*WebsiteStatusChecker) Check

func (_m *WebsiteStatusChecker) Check(ctx context.Context, name string) (bool, error)

Check provides a mock function with given fields: ctx, name

func (*WebsiteStatusChecker) CreateStatus

func (_m *WebsiteStatusChecker) CreateStatus(ctx context.Context, status *domain.Status) error

CreateStatus provides a mock function with given fields: ctx, status

type WebsiteStatusService

type WebsiteStatusService struct {
	mock.Mock
}

WebsiteStatusService is an autogenerated mock type for the WebsiteStatusService type

func NewWebsiteStatusService

func NewWebsiteStatusService(t mockConstructorTestingTNewWebsiteStatusService) *WebsiteStatusService

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

func (*WebsiteStatusService) CreateWebsite

func (_m *WebsiteStatusService) CreateWebsite(ctx context.Context, website *domain.Website) error

CreateWebsite provides a mock function with given fields: ctx, website

func (*WebsiteStatusService) DeleteWebsite

func (_m *WebsiteStatusService) DeleteWebsite(ctx context.Context, id int64) error

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

func (*WebsiteStatusService) GetWebsiteStatusByID

func (_m *WebsiteStatusService) GetWebsiteStatusByID(ctx context.Context, id int64) (domain.WebsiteStatus, error)

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

func (*WebsiteStatusService) ListWebsiteStatuses

func (_m *WebsiteStatusService) ListWebsiteStatuses(ctx context.Context, websiteID int64, cursor string, num int64) ([]domain.Status, string, error)

ListWebsiteStatuses provides a mock function with given fields: ctx, websiteID, cursor, num

func (*WebsiteStatusService) ListWebsitesStatus

func (_m *WebsiteStatusService) ListWebsitesStatus(ctx context.Context, cursor string, num int64, filters map[string]string) ([]domain.WebsiteStatus, string, error)

ListWebsitesStatus provides a mock function with given fields: ctx, cursor, num, filters

type WebsiteStatusStorer

type WebsiteStatusStorer struct {
	mock.Mock
}

WebsiteStatusStorer is an autogenerated mock type for the WebsiteStatusStorer type

func NewWebsiteStatusStorer

func NewWebsiteStatusStorer(t mockConstructorTestingTNewWebsiteStatusStorer) *WebsiteStatusStorer

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

func (*WebsiteStatusStorer) DropWebsite

func (_m *WebsiteStatusStorer) DropWebsite(ctx context.Context, id int64) error

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

func (*WebsiteStatusStorer) InsertStatus

func (_m *WebsiteStatusStorer) InsertStatus(ctx context.Context, status *domain.Status) error

InsertStatus provides a mock function with given fields: ctx, status

func (*WebsiteStatusStorer) InsertWebsite

func (_m *WebsiteStatusStorer) InsertWebsite(ctx context.Context, website *domain.Website) error

InsertWebsite provides a mock function with given fields: ctx, website

func (*WebsiteStatusStorer) QueryStatusesByWebsiteID

func (_m *WebsiteStatusStorer) QueryStatusesByWebsiteID(ctx context.Context, websiteID int64, cursor string, num int64) ([]domain.Status, string, error)

QueryStatusesByWebsiteID provides a mock function with given fields: ctx, websiteID, cursor, num

func (*WebsiteStatusStorer) QueryWebsiteStatusByID

func (_m *WebsiteStatusStorer) QueryWebsiteStatusByID(ctx context.Context, id int64) (domain.WebsiteStatus, error)

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

func (*WebsiteStatusStorer) QueryWebsites

func (_m *WebsiteStatusStorer) QueryWebsites(ctx context.Context, cursor string, num int64, filters map[string]string) ([]domain.Website, string, error)

QueryWebsites provides a mock function with given fields: ctx, cursor, num, filters

func (*WebsiteStatusStorer) QueryWebsitesStatus

func (_m *WebsiteStatusStorer) QueryWebsitesStatus(ctx context.Context, cursor string, num int64, filters map[string]string) ([]domain.WebsiteStatus, string, error)

QueryWebsitesStatus provides a mock function with given fields: ctx, cursor, num, filters

Jump to

Keyboard shortcuts

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