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

Function test_require_missing

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

Source from the content-addressed store, hash-verified

898
899 #[test]
900 fn test_require_missing() {
901 let table = HashDedupTable::new(make_hash(0));
902 let result = table.require(&make_hash(99));
903 assert!(result.is_err());
904 assert!(matches!(result, Err(FormatError::HashNotFound { .. })));
905 }
906
907 // ── Resolve ────────────────────────────────────────────────────
908

Callers

nothing calls this directly

Calls 2

make_hashFunction · 0.70
requireMethod · 0.45

Tested by

no test coverage detected