()
| 833 | |
| 834 | #[test] |
| 835 | fn test_format_hash_truncated() { |
| 836 | // Create a test hash (32 bytes = 64 base32 chars when encoded) |
| 837 | let bytes = [0u8; 32]; |
| 838 | let hash = Hash::from_bytes(bytes); |
| 839 | |
| 840 | let formatted = format_hash(&hash, false); |
| 841 | assert!(formatted.len() <= DEFAULT_HASH_LENGTH); |
| 842 | assert!(!formatted.ends_with("...")); |
| 843 | } |
| 844 | |
| 845 | #[test] |
| 846 | fn test_format_hash_full() { |
nothing calls this directly
no test coverage detected