mock

package
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeLibrary

type FakeLibrary struct {
	GetFeedContentFn func(
		ctx context.Context,
		flavour feedlib.Flavour,
	) ([]*domain.GhostCMSPost, error)
	GetFaqsContentFn func(
		ctx context.Context,
		flavour feedlib.Flavour,
	) ([]*domain.GhostCMSPost, error)
	GetLibraryContentFn func(
		ctx context.Context,
	) ([]*domain.GhostCMSPost, error)
}

FakeLibrary defines a mock Libray service

func (*FakeLibrary) GetFaqsContent

func (l *FakeLibrary) GetFaqsContent(
	ctx context.Context,
	flavour feedlib.Flavour,
) ([]*domain.GhostCMSPost, error)

GetFaqsContent mocks getting FAQ content from ghost cms

func (*FakeLibrary) GetFeedContent

func (l *FakeLibrary) GetFeedContent(
	ctx context.Context,
	flavour feedlib.Flavour,
) ([]*domain.GhostCMSPost, error)

GetFeedContent mocks getting feed content from ghost cms

func (*FakeLibrary) GetLibraryContent

func (l *FakeLibrary) GetLibraryContent(
	ctx context.Context,
) ([]*domain.GhostCMSPost, error)

GetLibraryContent mocks getting Library content from ghost cms

Jump to

Keyboard shortcuts

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