From 79ed75bedca552e2c81de99e8d8509aed5abc6a3 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Fri, 23 Oct 2026 13:21:18 +0200 Subject: [PATCH] Gate probe: the 2.0.1 ref-list probe reuses 2.0.1's own RefListDriftTests document types Co-Authored-By: Claude Opus 5.5 --- .../OldReaderRefListProbe.cs | 27 +++---------------- 1 file changed, 3 insertions(+), 24 deletions(-) diff --git a/tests/vectors/document-variants-c2a/old-reader-probes/OldReaderRefListProbe.cs b/tests/vectors/document-variants-c2a/old-reader-probes/OldReaderRefListProbe.cs index 07dc55c9..ed08a2c1 100644 --- a/tests/vectors/document-variants-c2a/old-reader-probes/OldReaderRefListProbe.cs +++ b/tests/vectors/document-variants-c2a/old-reader-probes/OldReaderRefListProbe.cs @@ -6,37 +6,16 @@ using System.Text.Json; using System.Threading.Tasks; using GameCult.Caching; using GameCult.Caching.MessagePack; -using MessagePack; using NUnit.Framework; namespace GameCult.Caching.Tests { // Copied into a checkout of cultlib-unity-v2.0.1 (b8fc5eb0) by old-reader-refusal.sh. Not part of this tree's suite. // It attaches the store the 1.0.60 writer produced and prints the REFLIST-SUMMARY line that - // RefListDriftTests.A_1_0_60_Written_Store_Opens_Like_2_0_1 prints at head; 'gate csharp' diffs the two lines. + // RefListDriftTests.A_1_0_60_Written_Store_Opens_Like_2_0_1 prints at head; 'gate csharp' diffs the two lines. The document + // types are 2.0.1's own RefListDriftTests.RefListTarget and RefListHolder. public class OldReaderRefListProbe { - [CultDocument("tests.reflist_target", "tests.reflist_target.v1")] - [MessagePackObject(AllowPrivate = true)] - internal sealed class RefListTarget - { - [Key(0)] - [CultName] - public string Name = string.Empty; - } - - [CultDocument("tests.reflist_holder", "tests.reflist_holder.v1")] - [MessagePackObject(AllowPrivate = true)] - internal sealed class RefListHolder - { - [Key(0)] - [CultName] - public string Name = string.Empty; - - [Key(1)] - public CultRecordRef[] Items = Array.Empty>(); - } - [Test] public async Task A_1_0_60_Written_Store_Attaches_As_Compatible_Drift() { @@ -50,7 +29,7 @@ namespace GameCult.Caching.Tests await cache.PullAllBackingStoresAsync(); var warnings = store.LastSchemaMigrationReports.SelectMany(report => report.Warnings).Select(warning => warning.Code).Distinct().OrderBy(code => code, StringComparer.Ordinal).ToArray(); Assert.That(warnings, Does.Contain("gained_reference_semantics")); - var items = cache.GetAll().Single().Items.Select(item => item.Key.Value).ToArray(); + var items = cache.GetAll().Single().Items.Select(item => item.Key.Value).ToArray(); Assert.That(items, Is.EqualTo(new[] { "alpha", "beta" })); store.PushAll();