()
| 714 | |
| 715 | #[test] |
| 716 | fn test_format_hash_with_custom_length() { |
| 717 | let bytes = [0u8; 32]; |
| 718 | let hash = Hash::from_bytes(bytes); |
| 719 | |
| 720 | let formatted = format_hash_with_length(&hash, 8); |
| 721 | assert!(formatted.len() <= 11); // 8 + 3 for "..." |
| 722 | |
| 723 | let full = format_hash_with_length(&hash, 0); |
| 724 | assert!(!full.ends_with("...")); |
| 725 | } |
| 726 | |
| 727 | // ------------------------------------------------------------------------- |
| 728 | // Timestamp Formatting Tests |
nothing calls this directly
no test coverage detected