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

Function test_format_timestamp

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

Source from the content-addressed store, hash-verified

728
729 #[test]
730 fn test_format_timestamp() {
731 let ts = Utc.with_ymd_and_hms(2024, 1, 15, 10, 30, 45).unwrap();
732 let formatted = format_timestamp(&ts);
733 assert!(formatted.contains("2024"));
734 assert!(formatted.contains("01"));
735 assert!(formatted.contains("15"));
736 }
737
738 #[test]
739 fn test_format_timestamp_relative_just_now() {

Callers

nothing calls this directly

Calls 2

format_timestampFunction · 0.85
unwrapMethod · 0.45

Tested by

no test coverage detected