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

Function test_contains

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

Source from the content-addressed store, hash-verified

981
982 #[test]
983 fn test_contains() {
984 let h0 = make_hash(0);
985 let h1 = make_hash(1);
986 let table = HashDedupTable::new(h0);
987
988 assert!(table.contains(&h0));
989 assert!(!table.contains(&h1));
990 }
991
992 // ── Iterator ───────────────────────────────────────────────────
993

Callers

nothing calls this directly

Calls 1

make_hashFunction · 0.70

Tested by

no test coverage detected