rdmbair15m5-changelog-20260923-0754-rtty-flows-banner-tests
rdmbair15m5-changelog-20260923-0754-rtty-flows-banner-tests
Added dedicated unit tests for boundingCaption,
sourceLossText, and evaluateBounding string
builders in apps/RTTy (TASK-20260904-12),
closing the post-merge test gap from PR #10.
Scope & Repositories
- Hosts:
rdmbair15m5(working tree),rdmsm4x(canonical hub) - Repo:
apps/RTTy - Ticket:
TASK-20260904-12(resolved) - Commit:
5c920a3("test(flows): add dedicated unit tests for sourceLossText, boundingCaption, and evaluateBounding (TASK-20260904-12)")
Exact Files Touched
apps/RTTy/Tests/RTTyTests/ApplicationFlowNativeAdapterTests.swift
Changes Made
- Added
testBoundingCaptionWithProcessAndEndpointDrops:- Validates exact string pinning when both process and endpoint
bounding are active
(
"Tracking top 256 of 300 processes · top 1,024 of 1,200 endpoints"). - Validates process-only drop caption
(
"Tracking top 256 of 300 processes"). - Validates endpoint-only drop caption
(
"Tracking top 1,024 of 1,200 endpoints"). - Validates empty caption when drops and evictions are 0.
- Validates exact string pinning when both process and endpoint
bounding are active
(
- Added
testSourceLossTextWithSkippedMessagesAndTruncation:- Validates singular count formatting
(
"Kernel telemetry skipped 1 message; totals may undercount."). - Validates plural count formatting
(
"Kernel telemetry skipped 42 messages; totals may undercount."). - Validates thousand-separator formatting
(
"Kernel telemetry skipped 1,234 messages; totals may undercount."). - Validates truncated output branch
(
"Kernel telemetry output was truncated; totals may undercount."). - Validates precedence of skipped messages over truncation.
- Validates fallback message for generic collection failure.
- Validates singular count formatting
(
- Added
testEvaluateBoundingPresentationOutcomes:- Validates mapping to
TelemetryBoundingOutcomeacross.clean,.sourceWarning,.displayCaption, and.dualWarningAndCaption.
- Validates mapping to
Verification Evidence
swift test --package-path /Users/richh/dev/apps/RTTy --filter ApplicationFlowNativeAdapterTests:rdmbair15m5: 10 tests passed in 0.002s (+3 tests, 0 failures).rdmsm4x: 10 tests passed in 0.001s (+3 tests, 0 failures).
- Full test suite execution
(
swift test --package-path /Users/richh/dev/apps/RTTy):RTTyTests.xctest: 1129 passed, 8 skipped, 0 failures.RTTyPacketTunnelTests.xctest: 71 passed, 0 failures.LatencyCoreTests.xctest: 308 passed, 0 failures.- Total: 1508 tests passed.
- Git parity:
- Pushed to
origin(git.ecs0.net:git/apps/RTTy.git) at5c920a3. - Pulled on
rdmsm4x:~/dev/apps/RTTyfromfleet/mainvia fast-forward. - Pushed from
rdmsm4xto GitHuborigin(https://github.com/richhdoty/RTTy.git) andbackup(https://github.com/richhdoty/rdmsm4x-dev-apps-rtty.git).
- Pushed to
Rollback / Undo
git -C /Users/richh/dev/apps/RTTy revert 5c920a3