Delete the standalone schema catalog serializers
SerializeSchemaCatalog and DeserializeSchemaCatalog had no consumer outside the snapshot round-trip test. Catalog entries still serialize inside SerializeSnapshot/DeserializeSnapshot through the same per-entry reader and writer, and the round-trip test now checks the catalog through the snapshot. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
900e148d8a
commit
360dd0ae2f
2 changed files with 1 additions and 36 deletions
|
|
@ -805,8 +805,6 @@ namespace GameCult.Caching.Tests
|
|||
|
||||
var roundTripRecord = CultDocumentMessagePackSerialization.DeserializePersistedRecord(
|
||||
CultDocumentMessagePackSerialization.SerializePersistedRecord(record));
|
||||
var roundTripCatalog = CultDocumentMessagePackSerialization.DeserializeSchemaCatalog(
|
||||
CultDocumentMessagePackSerialization.SerializeSchemaCatalog(catalog));
|
||||
var roundTripSnapshot = CultDocumentMessagePackSerialization.DeserializeSnapshot(
|
||||
CultDocumentMessagePackSerialization.SerializeSnapshot(snapshot));
|
||||
|
||||
|
|
@ -814,7 +812,7 @@ namespace GameCult.Caching.Tests
|
|||
Assert.That(roundTripRecord.SchemaId, Is.EqualTo("schema-1"));
|
||||
Assert.That(roundTripRecord.StoredAt, Is.EqualTo("2026-05-08T12:00:00Z"));
|
||||
Assert.That(roundTripRecord.Payload, Is.EqualTo(record.Payload));
|
||||
Assert.That(roundTripCatalog.Single().CompatibleSchemaIds, Is.EqualTo(catalog.Single().CompatibleSchemaIds));
|
||||
Assert.That(roundTripSnapshot.SchemaCatalog.Single().CompatibleSchemaIds, Is.EqualTo(catalog.Single().CompatibleSchemaIds));
|
||||
Assert.That(roundTripSnapshot.FormatVersion, Is.EqualTo("cultcache.store.v1"));
|
||||
Assert.That(roundTripSnapshot.SchemaCatalog.Single().SchemaName, Is.EqualTo("tests.named_entry"));
|
||||
Assert.That(roundTripSnapshot.Records.Single().Key, Is.EqualTo("record-1"));
|
||||
|
|
|
|||
Loading…
Reference in a new issue