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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected