fix(grpc-data): A4 review r1 — AdminUI helpers null-safe + doc comments restored; metric descriptions name both sides; docs: S1/S2/S3 behaviour, RefreshRequired only on a changed incomplete set, SourceName vs runtime status (S4), scripted Good = applied, A4-docs citations
This commit is contained in:
+10
@@ -54,4 +54,14 @@ public sealed class GrpcDataConditionDiagnosticsDisplayTests
|
||||
DataConnectionDiagnostics.OriginConditions(new OriginConditionDiagnostics(2, 850, 1000, null, 1, 0, 3, new ConditionMethodCounts(1, 0, 0, 0)))
|
||||
.ShouldContain("condition items open 2 · largest listing 850/1000 (≥ 80% of MaxConditions)");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void A_partial_payload_without_mappings_or_methods_renders_instead_of_throwing()
|
||||
{
|
||||
// A4 review r1 NIT: an older or partial payload decodes these collections as null.
|
||||
var partial = new ConsumerConditionDiagnostics("live", null, 0, 0, 0, 0, 0, null!, 10, 2500, null!);
|
||||
DataConnectionDiagnostics.ConditionsNeedAttention(partial).ShouldBeFalse();
|
||||
DataConnectionDiagnostics.ConsumerConditions(partial).ShouldEndWith("methods unavailable");
|
||||
DataConnectionDiagnostics.OriginConditions(new OriginConditionDiagnostics(0, 0, 0, null, 0, 0, null, null!)).ShouldEndWith("methods served unavailable");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user