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

Function test_format_hash_full

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

Source from the content-addressed store, hash-verified

690
691 #[test]
692 fn test_format_hash_full() {
693 let bytes = [0u8; 32];
694 let hash = Hash::from_bytes(bytes);
695
696 let formatted = format_hash(&hash, true);
697 assert!(!formatted.ends_with("..."));
698 }
699
700 #[test]
701 fn test_format_hash_with_custom_length() {

Callers

nothing calls this directly

Calls 1

format_hashFunction · 0.85

Tested by

no test coverage detected