| Filename | Latest commit message | Latest commit date |
|---|---|---|
Cut 4b-4d of the publication map. The reorder buffer, drainer, prediction gate and the logging inside the Watch handler are gone. The database registers the Watch observer, then one cache journal. The journal runs under the gate in Sequence order: it takes the door, decides the change kind and prediction bookkeeping, logs (a primary mints, a replica records the primary's entry) and stashes the change; the Watch observer publishes the stash entry by Sequence. A primary that cannot log a committed change burns that sequence, raises its own compaction floor, tries CompactThrough, and throws CultNetShardLogException (not an InvalidOperationException) after publication. A replica's refused append reaches the pull loop and the cursor does not advance. Fixes four defects the map named: the log is appended to disk before memory (and memory is a SortedList keyed by sequence); the snapshot reads its log sequence before its documents; a restart resumes above the compaction point; GetCompactedMutationLogSequence and GetLatestMutationLogSequence honour the in-memory floor. The snapshot removal door sets Removal. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
| .. | ||
| CultCachePublicationIsolationTests.cs | ||
| CultNetCanonicalNumberTests.cs | ||
| CultNetDocumentBindingResolverTests.cs | ||
| CultNetDocumentRegistryVariantTests.cs | ||
| CultNetJournalTests.cs | ||
| CultNetOperationServerTests.cs | ||
| CultNetPublicationOrderTests.cs | ||
| CultNetPublishesCommitsTests.cs | ||
| CultNetSchemaContractTests.cs | ||
| CultNetSchemaServerGroupTests.cs | ||
| CultNetSelectionEvaluatorTests.cs | ||
| CultNetSelectionFixBatchTests.cs | ||
| CultNetSelectionPageTests.cs | ||
| CultNetSelectionSurvivorTests.cs | ||
| GameCult.Networking.Tests.csproj | ||
| MiniJsonSchemaValidator.cs | ||
| NetworkingTests.cs | ||
| README.md | ||
| SelectionParityVectorTests.cs | ||
| SelectionWireParityTests.cs | ||
GameCult.Networking.Tests
GameCult.Networking.Tests contains NUnit tests for the networking library.
Scope
The tests currently cover:
- AES-GCM encrypt/decrypt round-trips in
Secret - signed session-token validation
- signed session-token tamper detection
- signed session-token expiry handling
Run
dotnet test tests\GameCult.Networking.Tests\GameCult.Networking.Tests.csproj
Adding New Tests
Typical future areas to expand include:
- client reconnect and verify flows
- login and registration integration tests
- malformed message handling
- rate-limiting behavior under concurrency