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

Function phc_valid

clock-bound/src/daemon/event/phc.rs:201–211  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

199
200 #[test]
201 fn phc_valid() {
202 let _result = Phc::builder()
203 .tsc_post(TscCount::new(10))
204 .tsc_pre(TscCount::new(5)) // pre before post
205 .data(PhcData {
206 time: Instant::from_days(5),
207 clock_error_bound: Duration::from_micros(15),
208 })
209 .build()
210 .unwrap();
211 }
212
213 #[rstest]
214 #[case::minimal_delays(

Callers

nothing calls this directly

Calls 5

newFunction · 0.50
buildMethod · 0.45
dataMethod · 0.45
tsc_preMethod · 0.45
tsc_postMethod · 0.45

Tested by

no test coverage detected