Checks telemetry snapshots, wire fields, presence data and crash breadcrumbs.
Subsystem: Networking, protocols and social integration
Fixture/harness: telemetrysnapshottests
Setup: The standalone TelemetrySnapshotTests harness owns the inputs, local helpers and assertion sink used by the case files below.
Build/entry point: Tests/TelemetrySnapshotTests.vcxproj; declared configurations: Debug|Win32, Debug|x64, Release|x64.
TelemetrySnapshotTests.cpp
Source: Tests/TelemetrySnapshotTests.cpp
Test Crash Breadcrumbs
Fixture: Telemetry Snapshot tests
Case symbol: TestCrashBreadcrumbs
Source: Tests/TelemetrySnapshotTests.cpp:33
- Test
- Checks empty crash history emits no data and a wrapped history retains the newest 64 entries.
Source check messages (including original failure wording)
-
an empty crash history produced packet data
-
crash history failed to preserve the newest 64 entries across wraparound
-
crash packet did not contain the newest five breadcrumbs in reverse order
-
oversized breadcrumb was not safely truncated
-
long breadcrumbs exceeded the fixed network crash packet
-
a long breadcrumb displaced another packet entry
-
tiny crash packet was not terminated
-
formatting a compact packet damaged the full local crash history
Test Steam Presence
Fixture: Telemetry Snapshot tests
Case symbol: TestSteamPresence
Source: Tests/TelemetrySnapshotTests.cpp:69
- Test
- Checks Steam presence includes displayable gameplay text and valid indoor/state substitutions.
Source check messages (including original failure wording)
-
Steam presence omitted gameplay text or its display template
-
Steam indoor presence referenced an empty substitution
-
Steam state-only presence was not displayable
-
Steam empty presence did not have a displayable fallback
-
Steam screen presence did not use its localization token
-
Steam presence exceeded the API byte limit
-
Steam presence truncated inside a UTF-8 code point
-
Steam gameplay presence was not published
-
Steam screen transition retained a stale state
-
Steam advertised an incomplete presence after a rejected update
-
Steam presence did not recover on the next update
-
Steam presence advertised an unsupported join or party
Test Discord Activity Payload
Fixture: Telemetry Snapshot tests
Case symbol: TestDiscordActivityPayload
Source: Tests/TelemetrySnapshotTests.cpp:129
- Test
- Checks Discord activity includes gameplay text, configured artwork/hover labels and correct Unix seconds-to-milliseconds conversion.
Source check messages (including original failure wording)
-
Discord activity omitted gameplay status text
-
Discord activity omitted configured artwork or hover text
-
Discord activity did not convert Unix seconds to milliseconds
-
Discord activity retained fields from a previous update
-
Invalid Discord timestamp became a huge elapsed time
-
Discord timestamp conversion overflowed
-
Pending Discord activity borrowed gameplay memory
Test Packet Layouts And Timestamp Rollover
Fixture: Telemetry Snapshot tests
Case symbol: TestPacketLayoutsAndTimestampRollover
Source: Tests/TelemetrySnapshotTests.cpp:194
- Test
- Checks client/server/weapon source-timing wire layouts and rollover behavior.
Source check messages (including original failure wording)
Test Jitter Does Not Enter Source Timeline
Fixture: Telemetry Snapshot tests
Case symbol: TestJitterDoesNotEnterSourceTimeline
Source: Tests/TelemetrySnapshotTests.cpp:207
- Test
- Checks delivery jitter does not distort source-time motion once source timing is active.
Source check messages (including original failure wording)
-
source jitter setup 1 rejected
-
source jitter setup 2 rejected
-
source jitter sample 3 rejected
-
source jitter sample 4 rejected
-
vehicle did not activate source timing
-
receipt jitter entered the reconstructed source timeline
Test Delivery Loss And Source Revision Coalescing
Fixture: Telemetry Snapshot tests
Case symbol: TestDeliveryLossAndSourceRevisionCoalescing
Source: Tests/TelemetrySnapshotTests.cpp:226
- Test
- Checks packet loss is distinguished from coalesced source revisions and neither corrupts source-time playback.
Source check messages (including original failure wording)
-
loss setup 1
-
loss setup 2
-
loss sample
-
delivery loss was confused with source coalescing
-
delivery loss corrupted source-time motion
-
coalesce setup 1
-
coalesce setup 2
-
coalesce sample
-
consecutive delivery source-revision jump was reported as network loss
Test Supported Source Cadences
Fixture: Telemetry Snapshot tests
Case symbol: TestSupportedSourceCadences
Source: Tests/TelemetrySnapshotTests.cpp:251
- Test
- Checks supported telemetry cadences activate source timing with the correct timeline interval.
Source check messages (including original failure wording)
-
cadence setup 1 rejected
-
cadence setup 2 rejected
-
supported source cadence rejected
-
supported cadence remained in fallback
-
supported source cadence changed timeline interval
Test Long Silence And Impossible Delta Reanchor
Fixture: Telemetry Snapshot tests
Case symbol: TestLongSilenceAndImpossibleDeltaReanchor
Source: Tests/TelemetrySnapshotTests.cpp:274
- Test
- Checks source timelines re-anchor after long silence or impossible/zero source-time advances without discarding valid delivery.
Source check messages (including original failure wording)
-
silence setup 1
-
silence setup 2
-
silence setup 3
-
long silence packet rejected
-
long silence did not re-anchor source timeline
-
zero source delta packet rejected as delivery
-
advanced revision with zero source delta did not re-anchor
Test Old Server Fallback Transition
Fixture: Telemetry Snapshot tests
Case symbol: TestOldServerFallbackTransition
Source: Tests/TelemetrySnapshotTests.cpp:291
- Test
- Checks legacy zero padding stays in fallback and valid source timing starts only after a clean transition/re-anchor.
Source check messages (including original failure wording)
-
old server packet 1
-
old server packet 2
-
zero padding activated source timing
-
transition packet 1
-
first nonzero transition packet activated source timing
-
transition packet 2
-
valid source timing did not activate with a clean re-anchor
Test Weapon Source Timing At Sixty Frames Per Second
Fixture: Telemetry Snapshot tests
Case symbol: TestWeaponSourceTimingAtSixtyFramesPerSecond
Source: Tests/TelemetrySnapshotTests.cpp:306
- Test
- Checks 20 Hz weapon snapshots activate source timing and produce forward-moving presentation at 60 FPS.
Source check messages (including original failure wording)
-
20 Hz weapon source sample rejected
-
weapon source timing did not activate after two packets
-
20 Hz weapon presentation moved backward at 60 FPS
-
weapon presentation advanced more than one render frame
-
weapon source timing created a zero-duration interpolation segment
-
authoritative weapon presentation was advanced a second time
-
legacy weapon frame integration was removed
Test U Short Wraparound
Fixture: Telemetry Snapshot tests
Case symbol: TestUShortWraparound
Source: Tests/TelemetrySnapshotTests.cpp:344
- Test
- Test U Short Wraparound: ushort wrap 65535->0 must be newer; ushort half-range forward delta 32767 must be newer; ushort half-range delta 32768 is ambiguous/stale.
Source check messages (including original failure wording)
-
ushort wrap 65535->0 must be newer
-
ushort half-range forward delta 32767 must be newer
-
ushort half-range delta 32768 is ambiguous/stale
-
ushort duplicate must be rejected
-
pre-wrap packet after sequence zero must be stale
Test Weapon Modulo255 Wraparound
Fixture: Telemetry Snapshot tests
Case symbol: TestWeaponModulo255Wraparound
Source: Tests/TelemetrySnapshotTests.cpp:353
- Test
- Checks weapon sequence 254-to-0 wrap is newer while duplicates and reserved sequence 255 are rejected.
Source check messages (including original failure wording)
-
weapon 254->0 wrap must be newer
-
weapon delta 127 must be newer
-
weapon delta 128 must be stale
-
weapon duplicate must be rejected
-
weapon sequence 255 is never valid
Test Loss Reordering Duplicates And Reliable Stale
Fixture: Telemetry Snapshot tests
Case symbol: TestLossReorderingDuplicatesAndReliableStale
Source: Tests/TelemetrySnapshotTests.cpp:362
- Test
- Test Loss Reordering Duplicates And Reliable Stale: late reliable final packet superseded newer unreliable motion.
Source check messages (including original failure wording)
-
first sequence rejected
-
loss jump rejected
-
reordered packet accepted
-
duplicate packet accepted
-
late reliable final packet superseded newer unreliable motion
-
sequence gap count is wrong
-
drop counters are wrong
Test Burst After Stall
Fixture: Telemetry Snapshot tests
Case symbol: TestBurstAfterStall
Source: Tests/TelemetrySnapshotTests.cpp:380
- Test
- Test Burst After Stall: burst created a zero-duration timeline segment; burst recovery produced invalid presentation; burst recovery visibly overshot snapshots.
Source check messages (including original failure wording)
-
burst setup 0
-
burst setup 1
-
stall recovery
-
burst packet 1
-
burst packet 2
-
burst created a zero-duration timeline segment
-
burst recovery produced invalid presentation
-
burst recovery visibly overshot snapshots
Test Slot Reuse And Delayed Old Telemetry
Fixture: Telemetry Snapshot tests
Case symbol: TestSlotReuseAndDelayedOldTelemetry
Source: Tests/TelemetrySnapshotTests.cpp:398
- Test
- Checks reused scanner slots accept a new sequence baseline and quarantine delayed telemetry from their former occupants.
Source check messages (including original failure wording)
-
new slot generation did not accept sequence zero
-
large valid forward sequence rejected
-
delayed telemetry from the previous slot occupant passed bootstrap quarantine
-
new occupant sequence zero was rejected
-
slot reuse retained old identity/history
Test Docking Undocking And Parent Changes
Fixture: Telemetry Snapshot tests
Case symbol: TestDockingUndockingAndParentChanges
Source: Tests/TelemetrySnapshotTests.cpp:418
- Test
- Checks docking/reference/parent changes clear incompatible history and establish a fresh sequence baseline.
Source check messages (including original failure wording)
-
docked child snapshot rejected
-
docked parent metadata lost
-
undocking did not hard-reset snapshot history
-
reference-only reset did not establish a fresh sequence baseline
-
parent-slot change retained old frame history
Test Quaternion Validation And Interpolation
Fixture: Telemetry Snapshot tests
Case symbol: TestQuaternionValidationAndInterpolation
Source: Tests/TelemetrySnapshotTests.cpp:440
- Test
- Checks accepted orientations, SLERP and extrapolation remain valid normalized quaternions.
Source check messages (including original failure wording)
-
zero quaternion accepted
-
valid quaternion rejected
-
second valid quaternion rejected
-
SLERP did not return a unit quaternion
-
orientation extrapolation lost normalization
Test One Hertz Playback Uses Buffered Keyframes
Fixture: Telemetry Snapshot tests
Case symbol: TestOneHertzPlaybackUsesBufferedKeyframes
Source: Tests/TelemetrySnapshotTests.cpp:461
- Test
- Checks sparse 1 Hz telemetry uses buffered keyframes for playback after bootstrap.
Source check messages (including original failure wording)
-
1 Hz playback bootstrap rejected
-
1 Hz playback first keyframe rejected
-
1 Hz playback second keyframe rejected
-
1 Hz playback did not retain a complete keyframe interval
-
1 Hz playback position was extrapolated instead of interpolated
-
1 Hz playback exhausted its interpolation buffer
-
1 Hz playback orientation did not SLERP between keyframes
-
1 Hz playback third keyframe rejected
-
1 Hz playback visibly jumped when the next keyframe arrived
Test Malformed Payload And Numerics
Fixture: Telemetry Snapshot tests
Case symbol: TestMalformedPayloadAndNumerics
Source: Tests/TelemetrySnapshotTests.cpp:508
- Test
- Checks malformed lengths, impossible slots and invalid numeric payloads are rejected and counted correctly.
Source check messages (including original failure wording)
-
exact payload length rejected
-
malformed payload length accepted
-
impossible scanner slot accepted
-
NaN accepted
-
infinity accepted
-
invalid packet metrics are wrong
Test Cadences And Orbital Rendezvous
Fixture: Telemetry Snapshot tests
Case symbol: TestCadencesAndOrbitalRendezvous
Source: Tests/TelemetrySnapshotTests.cpp:528
- Test
- Checks buffered rendezvous playback across 4/10/20 Hz source cadences and matching cadence/rate estimates.
Source check messages (including original failure wording)
-
future cadence snapshot rejected
-
EWMA did not track 4/10/20 Hz cadence
-
incoming packet-rate metric did not track 4/10/20 Hz cadence
-
5 km/s rendezvous corrupted low-relative-speed velocity
-
orbital rendezvous used inertial velocity as rotating-frame position derivative
Test High Relative Speed Crossing
Fixture: Telemetry Snapshot tests
Case symbol: TestHighRelativeSpeedCrossing
Source: Tests/TelemetrySnapshotTests.cpp:557
- Test
- Test High Relative Speed Crossing: high-relative-speed crossing reversed or oscillated; high-relative-speed crossing overshot excessively.
Source check messages (including original failure wording)
-
crossing 0
-
crossing 1
-
crossing 2
-
high-relative-speed crossing reversed or oscillated
-
high-relative-speed crossing overshot excessively
Test Guided Missile Turning Between Sparse Snapshots
Fixture: Telemetry Snapshot tests
Case symbol: TestGuidedMissileTurningBetweenSparseSnapshots
Source: Tests/TelemetrySnapshotTests.cpp:572
- Test
- Checks guided-missile interpolation stays finite and turns between sparse source snapshots.
Source check messages (including original failure wording)
-
missile 0
-
missile 1
-
missile 2
-
guided missile interpolation produced invalid state
-
guided missile did not turn between sparse source snapshots
Test Twenty Hertz Upload Cadence And Coalescing
Fixture: Telemetry Snapshot tests
Case symbol: TestTwentyHertzUploadCadenceAndCoalescing
Source: Tests/TelemetrySnapshotTests.cpp:592
- Test
- Checks the 20 Hz upload gate stays on cadence and a stall produces one current upload instead of a catch-up burst.
Source check messages (including original failure wording)
-
20 Hz upload gate drifted over ten seconds
-
stall did not produce one current upload
-
stall produced a catch-up upload burst
-
stall retained multiple overdue upload intervals
-
Discord presence cadence is coupled to upload frequency
Test Upload Diagnostics
Fixture: Telemetry Snapshot tests
Case symbol: TestUploadDiagnostics
Source: Tests/TelemetrySnapshotTests.cpp:615
- Test
- Checks reported upload frequency, packet totals and packet age against the fixture's actual uploads.
Source check messages (including original failure wording)
-
upload diagnostics did not report 20 Hz
-
upload diagnostics packet total is wrong
-
upload diagnostics packet age is wrong
Test Contained Vehicle Buffering Policy
Fixture: Telemetry Snapshot tests
Case symbol: TestContainedVehicleBufferingPolicy
Source: Tests/TelemetrySnapshotTests.cpp:626
- Test
- Checks contained cargo placements bypass snapshot buffering while free-flight and docked telemetry use it.
Source check messages (including original failure wording)
-
REF_INANOTHER cargo placement entered the snapshot buffer
-
free-flight telemetry unexpectedly bypassed the snapshot buffer
-
docked telemetry unexpectedly bypassed the snapshot buffer