()
| 705 | |
| 706 | #[test] |
| 707 | fn test_format_hash_with_custom_length() { |
| 708 | let bytes = [0u8; 32]; |
| 709 | let hash = Hash::from_bytes(bytes); |
| 710 | |
| 711 | let formatted = format_hash_with_length(&hash, 8); |
| 712 | assert!(formatted.len() <= 11); // 8 + 3 for "..." |
| 713 | |
| 714 | let full = format_hash_with_length(&hash, 0); |
| 715 | assert!(!full.ends_with("...")); |
| 716 | } |
| 717 | |
| 718 | // ------------------------------------------------------------------------- |
| 719 | // Timestamp Formatting Tests |
nothing calls this directly
no test coverage detected