arrtest

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: AGPL-3.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package arrtest is a pretend Radarr or Sonarr for tests: just enough of their v3 API for what Matinee calls.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fake

type Fake struct {
	App arr.App
	Key string
	URL string
	// Base is the app's URL base (Settings → General), such as "/radarr".
	// Requests without it are redirected to it, as the real apps do.
	Base string

	// Catalog is what lookups find online: movies by tmdbId, shows by tvdbId.
	Catalog []map[string]any
	// Library is what the app has added, by its own id.
	Library  map[int]map[string]any
	Episodes []map[string]any // seriesId, seasonNumber, episodeNumber, episodeFileId
	Calendar []map[string]any
	Commands []map[string]any
	Deleted  []string // paths of deleted files, like "/moviefile/3"
	// contains filtered or unexported fields
}

func New

func New(t *testing.T, app arr.App) *Fake

func (*Fake) Add

func (f *Fake) Add(title map[string]any) int

Add puts a title straight into the app's library and returns its id.

func (*Fake) CommandNames

func (f *Fake) CommandNames() []string

Commands run so far, by name.

Jump to

Keyboard shortcuts

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