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

Function test_needs_regen_not_found

atomic-repository/src/semantic_regen.rs:1032–1040  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1030
1031 #[test]
1032 fn test_needs_regen_not_found() {
1033 let dir = tempfile::tempdir().unwrap();
1034 let db_path = dir.path().join("regen_notfound.redb");
1035 let store = RedbChangeStore::open(&db_path).unwrap();
1036
1037 let bogus = [0xFF; 32];
1038 let result = needs_semantic_regen(&store, &bogus);
1039 assert!(result.is_err());
1040 }
1041
1042 // ── regenerate_change (with redb store) ────────────────────────
1043

Callers

nothing calls this directly

Calls 3

needs_semantic_regenFunction · 0.85
unwrapMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected