()
| 679 | |
| 680 | #[test] |
| 681 | fn test_format_hash_truncated() { |
| 682 | // Create a test hash (32 bytes = 64 base32 chars when encoded) |
| 683 | let bytes = [0u8; 32]; |
| 684 | let hash = Hash::from_bytes(bytes); |
| 685 | |
| 686 | let formatted = format_hash(&hash, false); |
| 687 | assert!(formatted.len() <= DEFAULT_HASH_LENGTH); |
| 688 | assert!(!formatted.ends_with("...")); |
| 689 | } |
| 690 | |
| 691 | #[test] |
| 692 | fn test_format_hash_full() { |
nothing calls this directly
no test coverage detected