Vectors: catalog member rows across C#, Rust, TypeScript and Python #185

Merged
eureka merged 11 commits from hands/rs-member-rows-vectors into main 2026-11-27 21:43:15 +00:00
Showing only changes of commit 0bce19efef - Show all commits

CatalogMemberVectorTests: pin the warning codes the reader actually raises for a members-[] store

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Meta Vens 2026-11-27 22:25:32 +01:00

View file

@ -168,9 +168,10 @@ namespace GameCult.Caching.Tests
public void MembersEmptyRustStoreStillLoads()
{
AssertEqualToExpected(ReadM1("rust-members-empty-store.cc", out var reports));
var warnings = reports.SelectMany(report => report.Warnings).Select(warning => warning.Code).Distinct().ToArray();
Assert.That(warnings, Is.Not.Empty);
Assert.That(warnings, Is.All.EqualTo("defaulted_missing_slot"));
// What today's reader says of a catalog with no member rows: it loads, with warnings and no refusal. The three codes are
// the ones the reader raises when it has members and the store has none.
var warnings = reports.SelectMany(report => report.Warnings).Select(warning => warning.Code).Distinct().OrderBy(code => code, StringComparer.Ordinal).ToArray();
Assert.That(warnings, Is.EqualTo(new[] { "compatible_schema_id_drift", "content_hash_drift", "defaulted_missing_slot" }));
}
}
}