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:
@@ -15,7 +15,7 @@ using ZB.MOM.WW.ScadaBridge.TestSupport;
|
||||
namespace ZB.MOM.WW.ScadaBridge.SiteRuntime.Tests.Actors;
|
||||
|
||||
/// <summary>
|
||||
/// Gitea #36 end-to-end over the REAL <see cref="InstanceActor"/> waiter and DCL ingest path:
|
||||
/// End-to-end test over the REAL <see cref="InstanceActor"/> waiter and DCL ingest path:
|
||||
/// the cache still holds the previous run's <c>CompleteFlag = True</c>, the script's reset
|
||||
/// write has NOT echoed back yet. The legacy overload fast-paths on the stale value (the
|
||||
/// defect, pinned as documentation); the reset-aware overload holds the batch + trigger until
|
||||
@@ -33,6 +33,7 @@ public class HandshakeResetEchoTests : TestKit, IDisposable
|
||||
private readonly SharedScriptLibrary _sharedScriptLibrary;
|
||||
private readonly TestLocalDb _localDb;
|
||||
|
||||
/// <summary>Initializes the test with a temporary LocalDb-backed site storage and script compilation services.</summary>
|
||||
public HandshakeResetEchoTests()
|
||||
{
|
||||
_localDb = TestLocalDb.CreateTemp("handshake-reset-echo");
|
||||
@@ -42,6 +43,7 @@ public class HandshakeResetEchoTests : TestKit, IDisposable
|
||||
_sharedScriptLibrary = new SharedScriptLibrary(_compilationService, NullLogger<SharedScriptLibrary>.Instance);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
void IDisposable.Dispose()
|
||||
{
|
||||
// TestKit teardown first, so no in-flight actor can reach a disposed ILocalDb;
|
||||
@@ -90,6 +92,7 @@ public class HandshakeResetEchoTests : TestKit, IDisposable
|
||||
/// cache — callers migrate to the reset-aware overload instead. Never "fix" the fast-path in
|
||||
/// place; delete this test only if the legacy overload itself is removed.
|
||||
/// </summary>
|
||||
/// <returns>A task that represents the asynchronous operation.</returns>
|
||||
[Fact]
|
||||
public async Task LegacyOverload_FastPathsOnThePreviousRunsCachedTrue()
|
||||
{
|
||||
@@ -106,6 +109,8 @@ public class HandshakeResetEchoTests : TestKit, IDisposable
|
||||
Assert.True(await call);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that the reset-aware overload holds the batch until the reset echoes and then matches the fresh true value.</summary>
|
||||
/// <returns>A task that represents the asynchronous operation.</returns>
|
||||
[Fact]
|
||||
public async Task ResetAwareOverload_HoldsTheBatchUntilTheResetEchoes_ThenMatchesTheFreshTrue()
|
||||
{
|
||||
@@ -151,6 +156,8 @@ public class HandshakeResetEchoTests : TestKit, IDisposable
|
||||
Assert.Equal("Good", result.Quality);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that the reset-aware overload times out in the reset phase when no echo arrives and never writes the batch.</summary>
|
||||
/// <returns>A task that represents the asynchronous operation.</returns>
|
||||
[Fact]
|
||||
public async Task ResetAwareOverload_NoEcho_TimesOutInResetPhase_AndNeverWritesTheBatch()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user