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

Function test_hashes_method

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

Source from the content-addressed store, hash-verified

1244
1245 #[test]
1246 fn test_hashes_method() {
1247 let h0 = make_hash(0);
1248 let h1 = make_hash(1);
1249 let mut table = HashDedupTable::new(h0);
1250 table.insert(h1).unwrap();
1251
1252 let raw = table.hashes();
1253 assert_eq!(raw.len(), 2);
1254 assert_eq!(raw[0], h0);
1255 assert_eq!(raw[1], h1);
1256 }
1257
1258 #[test]
1259 fn test_bidirectional_consistency() {

Callers

nothing calls this directly

Calls 4

make_hashFunction · 0.70
unwrapMethod · 0.45
insertMethod · 0.45
hashesMethod · 0.45

Tested by

no test coverage detected