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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected