Skip to content

Test support

Code that exists for tests and never ships in the server: the shared test doubles and fixtures, the store’s SQLite and Postgres test databases, the invented demo library and the TMDB stand-in it and the tests share, the end-to-end integration journeys, and the evaluation harness that runs only under its own build tag.

One area of the package map.

Imports from other areas: any, by design — library (15), platform (10), proposals (7), channels (6), media (2), filler (2), people (2), playout (1)

Packages

  • demolibrary · 1 importer Loomarr’s demo library: an invented catalogue, the artwork and video generated for it, and an Emby-compatible stand-in media server that serves both (#1587).
  • eval · → channels, channels/schedule, library/inventory, library/mediaserver, library/provision, library/titlesearch, library/tmdb, platform/buildinfo, platform/llm, platform/openroutercatalog, platform/rating, platform/store, platform/store/librarystore, proposals, proposals/quality, proposals/suggest, proposals/webreference, testkit Loomarr’s semantic-evaluation harness (a §14 Go test binary, NOT a service).
  • library/tmdb/tmdbstandin · 1 importer · → library/provision One TMDB v3 stand-in: an in-memory catalogue served over the endpoints internal/library/tmdb calls.
  • platform/store/storetest · → testkit/postgresimage Builds the conformance suites’ private databases: one migrated, boot-seeded template per backend, cloned for every assertion.
  • testkit · 2 importers · → channels/schedule, demolibrary, filler/acquisition, filler/records, library/provision, library/tmdb/tmdbstandin, media/images/rustgen, people/access, people/notifications, platform/llm, platform/store, platform/store/channelstore, platform/store/proposalstore, playout, proposals/quality, proposals/webreference, testkit/execfixture, testkit/postgresimage The shared test doubles and pinned fixtures every test uses (AGENTS.md testing rules: unit tests never touch the network; phases extend the testkit rather than inventing private mocks).
  • testkit/catalogfixture · → library/mediaserver, library/provision, library/titlesearch Shared no-network adapters for catalog tests.
  • testkit/channeljourney · → channels/schedule, library/provision, proposals The public synthetic approval-to-schedule fixtures for #1103.
  • testkit/execfixture · 1 importer Owns filesystem-backed executable test doubles without importing application packages.
  • testkit/httpfixture Shared no-network HTTP test seams without importing any application adapter.
  • testkit/imagetestkit · → media/images, testkit In-memory image store and a real image service over it, shared by the adapter tests of internal/app and internal/app/playoutresolve.
  • testkit/libraryfixture · → channels/schedule, library/mediaserver, library/provision No-network adapters for library-facing tests.
  • testkit/moviecollectionsfixture · → library/tmdb The shared deterministic source for movie-collection resolver tests.
  • testkit/outlookfixture · → channels/schedule, library/mediaserver Shared read-only library observations for tests.
  • testkit/playoutstreamfixture Adapts controlled test chunks to cancellable transport reads.
  • testkit/postgresimage · 2 importers Owns the single image reference used by Postgres testcontainers and the Make pre-pull that runs before those tests.
  • testkit/recordfixture A shared generic call recorder for isolated tests without depending on application packages.

Tests only: integration