diff --git a/tests/GameCult.Caching.Tests/BackingStoreTests.cs b/tests/GameCult.Caching.Tests/BackingStoreTests.cs index 42c38421..6c227e22 100644 --- a/tests/GameCult.Caching.Tests/BackingStoreTests.cs +++ b/tests/GameCult.Caching.Tests/BackingStoreTests.cs @@ -1184,20 +1184,6 @@ namespace GameCult.Caching.Tests public CultRecordRef Parent = new(new CultRecordKey("parent")); } - [CultDocument("tests.schema_stamped_entry", "tests.schema_stamped_entry.v1")] - internal sealed class SchemaStampedTestEntry - { - [Key(0)] - public string SchemaVersion = string.Empty; - - [Key(1)] - [CultName] - public string Name = string.Empty; - - [Key(2)] - public string Value = string.Empty; - } - [CultDocument("tests.named_entry", "tests.named_entry.v2")] internal sealed class NamedTestEntryAdditive { diff --git a/tests/GameCult.Caching.Tests/README.md b/tests/GameCult.Caching.Tests/README.md index 1b1c49a3..94be3ff6 100644 --- a/tests/GameCult.Caching.Tests/README.md +++ b/tests/GameCult.Caching.Tests/README.md @@ -1,15 +1,32 @@ # GameCult.Caching.Tests `GameCult.Caching.Tests` contains NUnit tests for the caching library and its -single-file MessagePack persistence path. +MessagePack persistence stores. ## Scope The tests currently cover: -- `SingleFileMessagePackBackingStore` round-trips -- explicit Cult document payload codecs -- hand-written MessagePack store snapshot/record/catalog serialization +- `SingleFileMessagePackBackingStore` round-trips, external pulls, and the + dirty-pull guard +- `DirectoryMessagePackBackingStore` with the + `cultcache.store.v4.directory-content-addressed-pages` manifest: page writes, + clean flushes, concurrent writers under the commit lease, external deltas, + unflushed local keys, orphaned pages, and observers running after the lease + is released +- `CultCacheMessagePack.OpenAsync`, persisted globals, dirty state, and flush on + dispose +- cache lookups (`Get`, `GetAll`, runtime-type upserts) +- the ambient cache transaction (`ExecuteTransactionAsync`), until Cut 3 + replaces it with the explicit batch commit +- explicit Cult document payload codecs, generated metadata, canonical schema + fixtures, and schema drift reports +- hand-written MessagePack snapshot and record serialization +- `StoreRoutingTests`: the Cut 1 store-routing contract, red until Cut 3 + +Selective hydration, the directory store's stage probes, pre-v4 directory +formats, and the SoA table are no longer in the tree; the SoA table is parked +at `parked/cultcache-soa` (`docs/parked-features.md`). ## Run