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