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

Function test_empty_table

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

Source from the content-addressed store, hash-verified

773
774 #[test]
775 fn test_empty_table() {
776 let table = HashDedupTable::empty();
777 assert_eq!(table.len(), 0);
778 assert!(table.is_empty());
779 assert_eq!(table.self_hash(), None);
780 assert_eq!(table.resolve(0), None);
781 }
782
783 #[test]
784 fn test_from_hashes_single() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected