changelog shortlog graph tags branches changeset file revisions annotate raw help

Mercurial > core / rust/lib/db/src/tests.rs

revision 8: 1227f932b628
     1.1--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2+++ b/rust/lib/db/src/tests.rs	Tue Oct 17 20:36:37 2023 -0400
     1.3@@ -0,0 +1,15 @@
     1.4+use crate::registry::Registry;
     1.5+use tempfile::tempdir;
     1.6+
     1.7+#[test]
     1.8+fn open_registry_test() {
     1.9+  let path = tempdir().unwrap().into_path();
    1.10+  Registry::new(path).unwrap();
    1.11+}
    1.12+
    1.13+#[test]
    1.14+fn repair_registry_test() {
    1.15+  let path = tempdir().unwrap();
    1.16+  Registry::new(path.path()).unwrap();
    1.17+  Registry::repair(path.path()).unwrap();
    1.18+}