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