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

Source from the content-addressed store, hash-verified

738
739 #[test]
740 fn test_format_timestamp_relative_hours() {
741 let ts = Utc::now() - chrono::Duration::hours(3);
742 let formatted = format_timestamp_relative(&ts);
743 assert!(formatted.contains("hours ago"));
744 }
745
746 #[test]
747 fn test_format_timestamp_relative_yesterday() {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected