MCPcopy Create free account
hub / github.com/aws/clock-bound / new

Method new

clock-bound/src/daemon/clock_state/clock_adjust.rs:117–122  ·  view source on GitHub ↗
(ntp_adjtime: T)

Source from the content-addressed store, hash-verified

115 }
116
117 #[test]
118 fn running_applies_offset_on_each_tick() {
119 let mut mock = MockNtpAdjTimeExt::new();
120 mock.expect_apply_phase_correction_smooth()
121 .times(3)
122 .returning(|_| Ok(crate::daemon::time::timex::Timex::retrieve()));
123
124 let mut adjuster = ClockAdjuster::new(mock);
125 adjuster.handle_clock_parameters(&clock_params_with_offset(Duration::from_millis(100)));

Callers

nothing calls this directly

Calls 1

InitializedClass · 0.85

Tested by

no test coverage detected