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

Function test_display_format

atomic-core/src/change/format_v3/hash_table.rs:1221–1228  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1219
1220 #[test]
1221 fn test_display_format() {
1222 let mut table = HashDedupTable::new(make_hash(0));
1223 table.insert(make_hash(1)).unwrap();
1224
1225 let display = format!("{}", table);
1226 assert!(display.contains("2 entries"));
1227 assert!(display.contains("64 bytes"));
1228 }
1229
1230 // ── Clone ──────────────────────────────────────────────────────
1231

Callers

nothing calls this directly

Calls 3

make_hashFunction · 0.70
unwrapMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected