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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected