mocks

package
v1.2.2-dev.105 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SubscriptionDeleter

type SubscriptionDeleter struct {
	mock.Mock
}

SubscriptionDeleter is an autogenerated mock type for the SubscriptionDeleter type

func (*SubscriptionDeleter) DeleteSubscriptionById

func (_m *SubscriptionDeleter) DeleteSubscriptionById(id string) error

DeleteSubscriptionById provides a mock function with given fields: id

func (*SubscriptionDeleter) DeleteSubscriptionBySlug

func (_m *SubscriptionDeleter) DeleteSubscriptionBySlug(id string) error

DeleteSubscriptionBySlug provides a mock function with given fields: id

type SubscriptionLoader

type SubscriptionLoader struct {
	mock.Mock
}

SubscriptionLoader is an autogenerated mock type for the SubscriptionLoader type

func (*SubscriptionLoader) GetSubscriptionByCategories

func (_m *SubscriptionLoader) GetSubscriptionByCategories(categories []string) ([]models.Subscription, error)

GetSubscriptionByCategories provides a mock function with given fields: categories

func (*SubscriptionLoader) GetSubscriptionById

func (_m *SubscriptionLoader) GetSubscriptionById(id string) (models.Subscription, error)

GetSubscriptionById provides a mock function with given fields: id

func (*SubscriptionLoader) GetSubscriptionBySlug

func (_m *SubscriptionLoader) GetSubscriptionBySlug(slug string) (models.Subscription, error)

GetSubscriptionBySlug provides a mock function with given fields: slug

func (*SubscriptionLoader) GetSubscriptions

func (_m *SubscriptionLoader) GetSubscriptions() ([]models.Subscription, error)

GetSubscriptions provides a mock function with given fields:

type SubscriptionUpdater

type SubscriptionUpdater struct {
	mock.Mock
}

SubscriptionUpdater is an autogenerated mock type for the SubscriptionUpdater type

func (*SubscriptionUpdater) GetSubscriptionByCategories

func (_m *SubscriptionUpdater) GetSubscriptionByCategories(categories []string) ([]models.Subscription, error)

GetSubscriptionByCategories provides a mock function with given fields: categories

func (*SubscriptionUpdater) GetSubscriptionById

func (_m *SubscriptionUpdater) GetSubscriptionById(id string) (models.Subscription, error)

GetSubscriptionById provides a mock function with given fields: id

func (*SubscriptionUpdater) GetSubscriptionBySlug

func (_m *SubscriptionUpdater) GetSubscriptionBySlug(slug string) (models.Subscription, error)

GetSubscriptionBySlug provides a mock function with given fields: slug

func (*SubscriptionUpdater) GetSubscriptions

func (_m *SubscriptionUpdater) GetSubscriptions() ([]models.Subscription, error)

GetSubscriptions provides a mock function with given fields:

func (*SubscriptionUpdater) UpdateSubscription

func (_m *SubscriptionUpdater) UpdateSubscription(s models.Subscription) error

UpdateSubscription provides a mock function with given fields: s

type SubscriptionWriter

type SubscriptionWriter struct {
	mock.Mock
}

SubscriptionWriter is an autogenerated mock type for the SubscriptionWriter type

func (*SubscriptionWriter) AddSubscription

func (_m *SubscriptionWriter) AddSubscription(s models.Subscription) (string, error)

AddSubscription provides a mock function with given fields: s

Jump to

Keyboard shortcuts

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