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