MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_format_timestamp_relative_hours

Function test_format_timestamp_relative_hours

atomic-cli/src/commands/mod.rs:748–752  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

746
747 #[test]
748 fn test_format_timestamp_relative_hours() {
749 let ts = Utc::now() - chrono::Duration::hours(3);
750 let formatted = format_timestamp_relative(&ts);
751 assert!(formatted.contains("hours ago"));
752 }
753
754 #[test]
755 fn test_format_timestamp_relative_yesterday() {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected