| Filename | Latest commit message | Latest commit date |
|---|---|---|
Cut 1's fixtures are rewritten as the cut map names: LoadingNeverWritesASecondStore attaches its second store with a home type, and the global fixture is a real [CultGlobal] type instead of a reflected backing field. New: RoutedStoresWriteTheSameBytesAsSingleStores, CatalogRecordNeverLandsInRunStore, AttachAfterDirtyThrows, SecondUntypedStoreThrows, DuplicateHomeTypeThrows, WriteWithoutHomeThrows, ForeignRecordIsRefusedOnLoad, LateRouteOverAdmittedTypeThrows, ReadOnlyStoreRefusesWrites, ReadOnlyStoreIsNotFlushed, GlobalSingletonIsEnforced, AmbiguousAssignableLookupThrows, BatchIsAllOrNothingOnStoreFailure, BatchAcrossTwoHomesThrows, BatchObserversSeeOnlyCommittedRecords, BatchReadsSeeCommittedStateOnly, SingleUpsertAndBatchShareOneAdmissionPath, PullAllAdmissionFailureLeavesStoreAndCacheConsistent, StoreAttachedToSecondCacheThrows. Two readings where the map could not be followed literally: - LateRouteOverAdmittedTypeThrows: "the reverse order succeeds" cannot hold with the same untyped file holding a Note, because a Note loaded from the untyped store when a Note route exists is a foreign record. The reverse case puts the Note in the routed store and a RoutingOther in the untyped one. - BatchIsAllOrNothingOnStoreFailure: the fault is the store file held open without delete sharing, so the atomic replace fails, instead of a PushAll override; the single-file commit no longer routes through PushAll. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> |
||
| .. | ||
| Fixtures | ||
| BackingStoreTests.cs | ||
| CultDocumentRegistryTests.cs | ||
| GameCult.Caching.Tests.csproj | ||
| PreCut2FixtureDocuments.cs | ||
| PreCut2StoreFormatTests.cs | ||
| README.md | ||
| StoreRoutingTests.cs | ||
GameCult.Caching.Tests
GameCult.Caching.Tests contains NUnit tests for the caching library and its
MessagePack persistence stores.
Scope
The tests currently cover:
SingleFileMessagePackBackingStoreround-trips, external pulls, and the dirty-pull guardDirectoryMessagePackBackingStorewith thecultcache.store.v4.directory-content-addressed-pagesmanifest: page writes, clean flushes, concurrent writers under the commit lease, external deltas, unflushed local keys, orphaned pages, and observers running after the lease is releasedCultCacheMessagePack.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
dotnet test tests\GameCult.Caching.Tests\GameCult.Caching.Tests.csproj