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

Function test_format_timestamp_relative_days

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

Source from the content-addressed store, hash-verified

765
766 #[test]
767 fn test_format_timestamp_relative_days() {
768 let ts = Utc::now() - chrono::Duration::days(3);
769 let formatted = format_timestamp_relative(&ts);
770 assert!(formatted.contains("days ago"));
771 }
772
773 #[test]
774 fn test_format_timestamp_relative_weeks() {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected