@@ -420,10 +420,10 @@ async fn all_refs_from_root() {
420
420
"QmRgutAxd8t7oGkSm4wmeuByG6M51wcTso6cubDdQtuEfL" ,
421
421
) ;
422
422
423
- let all_edges: Vec < _ > = refs_path ( ipfs, IpfsPath :: try_from ( root) . unwrap ( ) , None )
423
+ let all_edges: Vec < _ > = refs_paths ( ipfs, vec ! [ IpfsPath :: try_from( root) . unwrap( ) ] , None , false )
424
424
. await
425
425
. unwrap ( )
426
- . map_ok ( |( source, dest) | ( source. to_string ( ) , dest. to_string ( ) ) )
426
+ . map_ok ( |( source, dest, _ ) | ( source. to_string ( ) , dest. to_string ( ) ) )
427
427
. try_collect ( )
428
428
. await
429
429
. unwrap ( ) ;
@@ -462,14 +462,16 @@ async fn all_unique_refs_from_root() {
462
462
"QmRgutAxd8t7oGkSm4wmeuByG6M51wcTso6cubDdQtuEfL" ,
463
463
) ;
464
464
465
- let all_edges: Vec < _ > = refs_path ( ipfs, IpfsPath :: try_from ( root) . unwrap ( ) , None )
465
+ let all_edges: Vec < _ > = refs_paths ( ipfs, vec ! [ IpfsPath :: try_from( root) . unwrap( ) ] , None , false )
466
466
. await
467
467
. unwrap ( )
468
- . map_ok ( |( source, dest) | ( source. to_string ( ) , dest. to_string ( ) ) )
468
+ . map_ok ( |( source, dest, _ ) | ( source. to_string ( ) , dest. to_string ( ) ) )
469
469
. try_collect ( )
470
470
. await
471
471
. unwrap ( ) ;
472
472
473
+ // if this test would have only the <dst> it might work?
474
+
473
475
// go-ipfs output:
474
476
// bafyreihpc3vupfos5yqnlakgpjxtyx3smkg26ft7e2jnqf3qkyhromhb64 -> bafyreidquig3arts3bmee53rutt463hdyu6ff4zeas2etf2h2oh4dfms44
475
477
// bafyreihpc3vupfos5yqnlakgpjxtyx3smkg26ft7e2jnqf3qkyhromhb64 -> QmPJ4A6Su27ABvvduX78x2qdWMzkdAYxqeH5TVrHeo3xyy
@@ -497,10 +499,10 @@ async fn refs_with_path() {
497
499
498
500
for path in paths. iter ( ) {
499
501
let path = IpfsPath :: try_from ( * path) . unwrap ( ) ;
500
- let all_edges: Vec < _ > = refs_path ( ipfs. clone ( ) , path, None )
502
+ let all_edges: Vec < _ > = refs_paths ( ipfs. clone ( ) , vec ! [ path] , None , false )
501
503
. await
502
504
. unwrap ( )
503
- . map_ok ( |( source, dest) | ( source. to_string ( ) , dest. to_string ( ) ) )
505
+ . map_ok ( |( source, dest, _ ) | ( source. to_string ( ) , dest. to_string ( ) ) )
504
506
. try_collect ( )
505
507
. await
506
508
. unwrap ( ) ;
0 commit comments