chore: delete already migrated resolving test
@@ -72,46 +72,6 @@ mod tests {
}
}
- #[test]
- fn walk_link_with_dot() {
- let cid = Cid::try_from("QmdfTbBqBPQ7VNxZEYEj14VmRuZBkqFbiwReogJgS1zR1n").unwrap();
- let doc = make_ipld!(cid.clone());
- let path = "bafyreielwgy762ox5ndmhx6kpi6go6il3gzahz3ngagb7xw3bj3aazeita/./foobar";
-
- let p = IpfsPath::try_from(path).unwrap();
-
- assert_eq!(
- walk(doc, &p).map(|r| r.0),
- Ok(WalkSuccess::Link(".".into(), cid))
- );
- }
-
- #[test]
- fn walk_link_without_dot_is_unsupported() {
- let cid = Cid::try_from("QmdfTbBqBPQ7VNxZEYEj14VmRuZBkqFbiwReogJgS1zR1n").unwrap();
- let doc = make_ipld!(cid);
- let path = "bafyreielwgy762ox5ndmhx6kpi6go6il3gzahz3ngagb7xw3bj3aazeita/foobar";
-
- let p = IpfsPath::try_from(path).unwrap();
-
- // go-ipfs would walk over the link even without a dot, this will probably come up with
- // dag/get
- walk(doc, &p).unwrap_err();
- }
-
- #[test]
- fn good_walk_to_link() {
- let (example_doc, cid) = example_doc_and_a_cid();
-
- let path = "bafyreielwgy762ox5ndmhx6kpi6go6il3gzahz3ngagb7xw3bj3aazeita/nested/even/2/or/something_on_the_next_block";
- let p = IpfsPath::try_from(path).unwrap();
-
- let (success, remaining) = walk(example_doc, &p).unwrap();
-
- assert_eq!(success, WalkSuccess::Link("or".into(), cid));
- assert_eq!(remaining, vec!["something_on_the_next_block"]);
- }
-
#[test]
fn walk_mismatches() {
let (example_doc, _) = example_doc_and_a_cid();
