docs(tests): fix CommentChecker findings across tests/ — 13,392 → 0 (repo-wide scan clean)
Comment/XML-doc changes only: - add summaries to ~10k test methods, fixtures, fakes and helpers (+ <param> on theories, <returns> on async Task methods, <inheritdoc/> on interface implementations the checker can resolve) - strip ~2.6k project-tracking references (WP*, P*-*, row-NN, Task N, #NN, Component-0NN) from comments, keeping the explanatory text; reword false positives in comments only - real docs on fakes implementing BCL/library interfaces (IDisposable, ILogger, IOptionsMonitor, IAsyncLifetime) - reword the last 5 src/ false positives (CWE-1236, failures-1, year-0001, M365) Only non-comment edits: four one-line nested classes split across lines so members can carry docs. Build 0 errors / 0 warnings.
This commit is contained in:
+8
-1
@@ -15,7 +15,7 @@ using AlarmSummaryPage = ZB.MOM.WW.ScadaBridge.CentralUI.Components.Pages.Monito
|
||||
namespace ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Monitoring;
|
||||
|
||||
/// <summary>
|
||||
/// Covers the Alarm Summary flat table's two rendering paths (arch-review WP2.4). A short
|
||||
/// Covers the Alarm Summary flat table's two rendering paths. A short
|
||||
/// list renders every row with a plain foreach; past the threshold the same row template is
|
||||
/// handed to <c>Virtualize</c> so a site with thousands of alarms stops materialising the
|
||||
/// whole table into the circuit's render tree on every delta. Row markup — including the
|
||||
@@ -69,6 +69,7 @@ public class AlarmSummaryVirtualizeTests : BunitContext
|
||||
return cut;
|
||||
}
|
||||
|
||||
/// <summary>Verifies that a short alarm list renders every row inline.</summary>
|
||||
[Fact]
|
||||
public void ShortList_RendersEveryRowInline()
|
||||
{
|
||||
@@ -82,6 +83,7 @@ public class AlarmSummaryVirtualizeTests : BunitContext
|
||||
Assert.Contains("Showing 20 of 20", cut.Markup);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that a long alarm list is virtualized and does not render every row.</summary>
|
||||
[Fact]
|
||||
public void LongList_VirtualizesWithoutRenderingEveryRow()
|
||||
{
|
||||
@@ -100,17 +102,22 @@ public class AlarmSummaryVirtualizeTests : BunitContext
|
||||
/// <summary>Never goes live, so the page keeps its poll snapshot for these tests.</summary>
|
||||
private sealed class InertLiveCache : ISiteAlarmLiveCache
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public IDisposable Subscribe(int siteId, Action onChanged) => new NoOp();
|
||||
|
||||
/// <inheritdoc />
|
||||
public IReadOnlyList<AlarmStateChanged> GetCurrentAlarms(int siteId) =>
|
||||
Array.Empty<AlarmStateChanged>();
|
||||
|
||||
/// <inheritdoc />
|
||||
public bool IsLive(int siteId) => false;
|
||||
|
||||
/// <inheritdoc />
|
||||
public IReadOnlyList<string> GetNotReportingInstances(int siteId) => Array.Empty<string>();
|
||||
|
||||
private sealed class NoOp : IDisposable
|
||||
{
|
||||
/// <summary>Does nothing; the no-op subscription holds no resources.</summary>
|
||||
public void Dispose() { }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user