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