()
| 687 | |
| 688 | #[test] |
| 689 | fn test_format_hash_truncated() { |
| 690 | // Create a test hash (32 bytes = 64 base32 chars when encoded) |
| 691 | let bytes = [0u8; 32]; |
| 692 | let hash = Hash::from_bytes(bytes); |
| 693 | |
| 694 | let formatted = format_hash(&hash, false); |
| 695 | assert!(formatted.len() <= DEFAULT_HASH_LENGTH); |
| 696 | assert!(!formatted.ends_with("...")); |
| 697 | } |
| 698 | |
| 699 | #[test] |
| 700 | fn test_format_hash_full() { |
nothing calls this directly
no test coverage detected