CultLib/tests/GameCult.Caching.Tests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Meta Vens 900e148d8a Read only v4 directory stores; delete probes and selective hydration
DirectoryMessagePackBackingStore loses HydrationFilter, FlushStageProbe,
ReadStageProbe and their stage constants, ReadPersistedGeneration,
PullSelected, and every legacy path: the v2 directory-indexed and v3
immutable-pages formats, v1 inline records and split pages, the index
upgrade on flush, and the legacy page paths. CacheBackingStore.PullSelected
and CultPersistedRecordMetadata go with them.

A missing manifest is an empty store. An existing manifest whose
FormatVersion is not cultcache.store.v4.directory-content-addressed-pages
throws "Directory store {path} is {format}; only {v4} is readable." A clean
flush writes nothing, since there is no legacy index left to upgrade.

Tests deleted with the surface they injected through: the v1 missing-catalog
load, pages-before-manifest, fault-before-manifest (4 cases), same-timestamp
page, mutation-during-flush and reader-lease tests. The orphan-page test now
checks through a fresh store pull instead of ReadPersistedGeneration.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-13 16:50:08 +02:00
..
BackingStoreTests.cs Read only v4 directory stores; delete probes and selective hydration 2026-09-13 16:50:08 +02:00
CultDocumentRegistryTests.cs Make CultCache hydration subscription-shaped 2026-07-20 01:48:56 +01:00
GameCult.Caching.Tests.csproj Remove alternate CultCache backing stores 2026-05-08 02:42:11 +01:00
README.md Remove alternate CultCache backing stores 2026-05-08 02:42:11 +01:00
StoreRoutingTests.cs Apply Soul fixes to the store composition docs and routing tests 2026-09-13 16:13:20 +02:00

GameCult.Caching.Tests

GameCult.Caching.Tests contains NUnit tests for the caching library and its single-file MessagePack persistence path.

Scope

The tests currently cover:

  • SingleFileMessagePackBackingStore round-trips
  • explicit Cult document payload codecs
  • hand-written MessagePack store snapshot/record/catalog serialization

Run

dotnet test tests\GameCult.Caching.Tests\GameCult.Caching.Tests.csproj