mock

package
v0.0.0-...-0492f6a Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidArgument = errors.New("mock: invalid argument type")
)

Custom errors

Functions

This section is empty.

Types

type Mock

type Mock struct{}

Mock is a mock module for test purposes

func (*Mock) AvailableMovieOptions

func (mock *Mock) AvailableMovieOptions() []string

AvailableMovieOptions implements the explorer interface

func (*Mock) AvailableShowOptions

func (mock *Mock) AvailableShowOptions() []string

AvailableShowOptions implements the explorer interface

func (*Mock) Download

func (mock *Mock) Download(*polochon.Torrent) error

Download implements the downloader interface

func (*Mock) DownloadSubtitle

func (mock *Mock) DownloadSubtitle(v any, entry *polochon.SubtitleEntry, log *logrus.Entry) (*polochon.Subtitle, error)

DownloadSubtitle implements the Subtitler interface

func (*Mock) GetDetails

func (mock *Mock) GetDetails(i any, log *logrus.Entry) (err error)

GetDetails implements the Detailer interface

func (*Mock) GetMovieList

func (mock *Mock) GetMovieList(option string, log *logrus.Entry) ([]*polochon.Movie, error)

GetMovieList implements the explorer interface

func (*Mock) GetMovieWishlist

func (mock *Mock) GetMovieWishlist(*logrus.Entry) ([]*polochon.WishedMovie, error)

GetMovieWishlist implements the wishlister interface

func (*Mock) GetShowCalendar

func (mock *Mock) GetShowCalendar(*polochon.Show, *logrus.Entry) (*polochon.ShowCalendar, error)

GetShowCalendar implements the calendar interface

func (*Mock) GetShowList

func (mock *Mock) GetShowList(option string, log *logrus.Entry) ([]*polochon.Show, error)

GetShowList implements the explorer interface

func (*Mock) GetShowWishlist

func (mock *Mock) GetShowWishlist(*logrus.Entry) ([]*polochon.WishedShow, error)

GetShowWishlist implements the wishlister interface

func (*Mock) GetSubtitle

func (mock *Mock) GetSubtitle(v any, lang polochon.Language, log *logrus.Entry) (*polochon.Subtitle, error)

GetSubtitle implements the Subtitler interface

func (*Mock) GetTorrents

func (mock *Mock) GetTorrents(i any, log *logrus.Entry) error

GetTorrents implements the torrenter interface

func (*Mock) Guess

Guess implements the guesser interface

func (*Mock) GuessMetadata

func (mock *Mock) GuessMetadata(*polochon.File, *logrus.Entry) (*polochon.VideoMetadata, error)

GuessMetadata implements the guesser interface

func (*Mock) Init

func (mock *Mock) Init(p []byte) error

Init implements the Module interface

func (*Mock) List

func (mock *Mock) List() ([]*polochon.Torrent, error)

List implements the downloader interface

func (*Mock) ListSubtitles

func (mock *Mock) ListSubtitles(v any, lang polochon.Language, log *logrus.Entry) ([]*polochon.SubtitleEntry, error)

ListSubtitles implements the Subtitler interface

func (*Mock) Name

func (mock *Mock) Name() string

Name implements the Module interface

func (*Mock) Notify

func (mock *Mock) Notify(any, *logrus.Entry) error

Notify implements the notifier interface

func (*Mock) Remove

func (mock *Mock) Remove(*polochon.Torrent) error

Remove implements the downloader interface

func (*Mock) SearchMovie

func (mock *Mock) SearchMovie(key string, log *logrus.Entry) ([]*polochon.Movie, error)

SearchMovie implements the searcher interface

func (*Mock) SearchShow

func (mock *Mock) SearchShow(key string, log *logrus.Entry) ([]*polochon.Show, error)

SearchShow implements the searcher interface

func (*Mock) SearchTorrents

func (mock *Mock) SearchTorrents(string) ([]*polochon.Torrent, error)

SearchTorrents implements the torrenter interface

func (*Mock) Status

func (mock *Mock) Status() (polochon.ModuleStatus, error)

Status implements the Module interface

func (*Mock) Watch

func (mock *Mock) Watch(watchPath string,
	ctx polochon.FsNotifierCtx, log *logrus.Entry) error

Watch implements the FsNotifier interface

Jump to

Keyboard shortcuts

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