MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_format_hash_truncated

Function test_format_hash_truncated

atomic-cli/src/commands/mod.rs:687–695  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

685
686 #[test]
687 fn test_format_hash_truncated() {
688 // Create a test hash (32 bytes = 64 base32 chars when encoded)
689 let bytes = [0u8; 32];
690 let hash = Hash::from_bytes(bytes);
691
692 let formatted = format_hash(&hash, false);
693 assert!(formatted.len() <= DEFAULT_HASH_LENGTH);
694 assert!(!formatted.ends_with("..."));
695 }
696
697 #[test]
698 fn test_format_hash_full() {

Callers

nothing calls this directly

Calls 1

format_hashFunction · 0.85

Tested by

no test coverage detected