Skip to content

Commit 3ebffb1

Browse files
committed
Loads of RndMat fixes; add caveat to HTML report
1 parent 4373ae6 commit 3ebffb1

3 files changed

Lines changed: 195 additions & 85 deletions

File tree

MiloLib.Tests/AssetIOTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ public void RoundTrip_VerifyByteEquality(Type assetType)
5757
if (writeMethod == null || readMethod == null)
5858
{
5959
var msg = writeMethod == null ? "No Write method found" : "No Read method found";
60-
for (ushort r = 0; r <= 50; r++)
60+
for (ushort r = 0; r <= 100; r++)
6161
TestResultCollector.RecordResult(assetType.Name, r, TestResultCollector.TestStatus.Failed, msg);
6262
return;
6363
}
6464

6565
// sweet sweet parallelism
66-
Parallel.For(0, 51, revision =>
66+
Parallel.For(0, 101, revision =>
6767
{
6868
ushort rev = (ushort)revision;
6969
string? errorMessage = null;

MiloLib.Tests/HtmlReportGenerator.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,13 +140,19 @@ public static string GenerateReport(string outputPath)
140140
.count-badge{{font-size:11px;padding:1px 6px;border-radius:10px;font-weight:600}}
141141
.count-badge.p-badge{{background:#1b3a1b;color:#4caf50}}.count-badge.f-badge{{background:#3a1b1b;color:#ef5350}}.count-badge.s-badge{{background:#3a2a0f;color:#ffa726}}
142142
#no-match{{display:none;text-align:center;padding:40px;color:#555;font-size:14px}}
143+
.caveat{{background:#1e3a2a;border-left:4px solid #4caf50;border-radius:4px;padding:12px 16px;margin-bottom:16px;font-size:13px;color:#b0bec5;line-height:1.5}}
144+
.caveat strong{{color:#e0e0e0}}
143145
</style>
144146
</head>
145147
<body>
146148
147149
<h1>MiloLib Round-Trip Serialization Test Report</h1>
148150
<p class=""subtitle"">Generated {DateTime.Now:yyyy-MM-dd HH:mm:ss} &mdash; {allResults.Count} asset types, revisions 0&ndash;{(allRevisions.Count > 0 ? allRevisions.Max : 0)}</p>
149151
152+
<div class=""caveat"">
153+
<strong>⚠ Caveat:</strong> This test only verifies that each asset's <code>Read()</code> and <code>Write()</code> functions are symmetric (i.e., write-read produces identical bytes). It does <strong>not</strong> validate that the implementation is correct. Missing or incorrect revision checks, invalid data, or other bugs will still pass if both Read and Write apply the same logic. Additionally, support for assets introduced after Rock Band 3 is limited.
154+
</div>
155+
150156
<div class=""stats"">
151157
<div class=""stat""><div class=""label"">Total Tests</div><div class=""val blue"">{totalTests}</div></div>
152158
<div class=""stat""><div class=""label"">Passed</div><div class=""val green"">{passedTests}</div></div>

0 commit comments

Comments
 (0)