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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected