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

Function clock_source_display

clock-bound/src/daemon/selected_clock.rs:288–290  ·  view source on GitHub ↗
(#[case] source: ClockSource, #[case] expected: &str)

Source from the content-addressed store, hash-verified

286 #[case(ClockSource::VMClock, "VMClock")]
287 #[case(ClockSource::Server(0xC0A80101), "Server([192, 168, 1, 1])")]
288 fn clock_source_display(#[case] source: ClockSource, #[case] expected: &str) {
289 assert_eq!(source.to_string(), expected);
290 }
291
292 #[rstest]
293 #[case(ClockSource::Init, 0x494E_4954)] // "INIT"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected