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:755–759  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

753
754 #[test]
755 fn test_format_timestamp_relative_hours() {
756 let ts = Utc::now() - chrono::Duration::hours(3);
757 let formatted = format_timestamp_relative(&ts);
758 assert!(formatted.contains("hours ago"));
759 }
760
761 #[test]
762 fn test_format_timestamp_relative_yesterday() {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected