()
| 853 | |
| 854 | #[test] |
| 855 | fn test_format_hash_with_custom_length() { |
| 856 | let bytes = [0u8; 32]; |
| 857 | let hash = Hash::from_bytes(bytes); |
| 858 | |
| 859 | let formatted = format_hash_with_length(&hash, 8); |
| 860 | assert!(formatted.len() <= 11); // 8 + 3 for "..." |
| 861 | |
| 862 | let full = format_hash_with_length(&hash, 0); |
| 863 | assert!(!full.ends_with("...")); |
| 864 | } |
| 865 | |
| 866 | // ------------------------------------------------------------------------- |
| 867 | // Timestamp Formatting Tests |
nothing calls this directly
no test coverage detected