()
| 709 | |
| 710 | #[test] |
| 711 | fn test_format_hash_truncated() { |
| 712 | // Create a test hash (32 bytes = 64 base32 chars when encoded) |
| 713 | let bytes = [0u8; 32]; |
| 714 | let hash = Hash::from_bytes(bytes); |
| 715 | |
| 716 | let formatted = format_hash(&hash, false); |
| 717 | assert!(formatted.len() <= DEFAULT_HASH_LENGTH); |
| 718 | assert!(!formatted.ends_with("...")); |
| 719 | } |
| 720 | |
| 721 | #[test] |
| 722 | fn test_format_hash_full() { |
nothing calls this directly
no test coverage detected