aboutsummaryrefslogtreecommitdiffstats
path: root/adenosine-pds/tests/test_repro_mst.rs
diff options
context:
space:
mode:
authorbryan newbold <bnewbold@robocracy.org>2023-02-19 17:01:07 -0800
committerbryan newbold <bnewbold@robocracy.org>2023-02-19 17:19:39 -0800
commitec2bf0c54245cd84f492847d2a1e070919b14a53 (patch)
treedbeb5b28c8b7e06eb9ac192d14ea4fdec81bb1e7 /adenosine-pds/tests/test_repro_mst.rs
parentb8ba815b4cafdff48694d14c994e862738d342ef (diff)
downloadadenosine-ec2bf0c54245cd84f492847d2a1e070919b14a53.tar.gz
adenosine-ec2bf0c54245cd84f492847d2a1e070919b14a53.zip
more refactoring of common code and APIs
Diffstat (limited to 'adenosine-pds/tests/test_repro_mst.rs')
-rw-r--r--adenosine-pds/tests/test_repro_mst.rs26
1 files changed, 0 insertions, 26 deletions
diff --git a/adenosine-pds/tests/test_repro_mst.rs b/adenosine-pds/tests/test_repro_mst.rs
deleted file mode 100644
index df88559..0000000
--- a/adenosine-pds/tests/test_repro_mst.rs
+++ /dev/null
@@ -1,26 +0,0 @@
-use adenosine_pds::RepoStore;
-use std::path::PathBuf;
-use std::str::FromStr;
-
-#[test]
-fn test_repro_mst() {
- let mut repo = RepoStore::open_ephemeral().unwrap();
- let cid = repo
- .import_car_path(
- &PathBuf::from_str("./tests/example_repo.car").unwrap(),
- None,
- )
- .unwrap();
- repo.verify_repo_mst(&cid).unwrap();
- let cid = repo
- .import_car_path(&PathBuf::from_str("./tests/bigger.car").unwrap(), None)
- .unwrap();
- repo.verify_repo_mst(&cid).unwrap();
-
- // test round-tripping from export
- let car_bytes = repo.export_car(&cid, None).unwrap();
- let mut other_repo = RepoStore::open_ephemeral().unwrap();
- let other_cid = other_repo.import_car_bytes(&car_bytes, None).unwrap();
- other_repo.verify_repo_mst(&cid).unwrap();
- assert_eq!(cid, other_cid);
-}