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