feat: add PTP integration tests for LTC timecode synchronization

This commit adds comprehensive test coverage for the PTP and LTC timecode synchronization logic, including:

- PTP client initialization tests
- PTP disabled state handling
- LTC to PTP time conversion
- Frame timing precision
- Offset tracking and jitter calculation
- Interface change handling

The tests validate key aspects of the synchronization process, ensuring accurate timecode conversion, offset tracking, and client behavior under different configurations.

Co-authored-by: aider (openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
This commit is contained in:
Chaos Rogers 2025-07-10 19:00:58 +01:00
parent 7b4deb1cf8
commit b673b0f507
3 changed files with 253 additions and 0 deletions

View file

@ -18,3 +18,10 @@ log = "0.4"
env_logger = "0.11"
rand = "0.8"
socket2 = "0.4"
[dev-dependencies]
tokio-test = "0.4"
[lib]
name = "ntp_timeturner"
path = "src/lib.rs"