@@ -55,8 +55,8 @@ pub async fn test_create_trust_atom() {
55
55
) ] ) ;
56
56
57
57
let trust_atom_input = TrustAtomInput {
58
- source : EntryHash :: from ( agent. clone ( ) ) ,
59
- target : AnyLinkableHash :: from ( target_entry_hash. clone ( ) ) ,
58
+ source : EntryHash :: from ( agent. clone ( ) ) ,
59
+ target : AnyLinkableHash :: from ( target_entry_hash. clone ( ) ) ,
60
60
prefix : None ,
61
61
content : Some ( content. clone ( ) ) ,
62
62
value : Some ( value. clone ( ) ) ,
@@ -294,8 +294,8 @@ pub async fn test_query_mine() {
294
294
& cell1. zome ( "trust_atom" ) ,
295
295
"create_trust_atom" ,
296
296
TrustAtomInput {
297
- source : agent. clone ( ) . into ( ) ,
298
- target : AnyLinkableHash :: from ( target_entry_hash. clone ( ) ) ,
297
+ source : agent. clone ( ) . into ( ) ,
298
+ target : AnyLinkableHash :: from ( target_entry_hash. clone ( ) ) ,
299
299
prefix : None ,
300
300
content : Some ( "sushi" . to_string ( ) ) ,
301
301
value : Some ( "0.8" . to_string ( ) ) ,
@@ -332,9 +332,9 @@ target: AnyLinkableHash::from(target_entry_hash.clone()),
332
332
assert_eq ! (
333
333
* trust_atom,
334
334
TrustAtom {
335
- source_entry_hash: AnyLinkableHashB64 :: from( AnyLinkableHash :: from( agent. clone( ) ) ) ,
336
- target_entry_hash: AnyLinkableHashB64 :: from( AnyLinkableHash :: from( target_entry_hash) ) ,
337
- prefix: None ,
335
+ source_entry_hash: AnyLinkableHashB64 :: from( AnyLinkableHash :: from( agent. clone( ) ) ) ,
336
+ target_entry_hash: AnyLinkableHashB64 :: from( AnyLinkableHash :: from( target_entry_hash) ) ,
337
+ prefix: None ,
338
338
content: Some ( "sushi" . to_string( ) ) ,
339
339
value: Some ( ".800000000" . to_string( ) ) ,
340
340
extra: None ,
@@ -366,8 +366,8 @@ pub async fn test_query_mine_with_content_starts_with() {
366
366
& cell1. zome ( "trust_atom" ) ,
367
367
"create_trust_atom" ,
368
368
TrustAtomInput {
369
- source : agent. clone ( ) . into ( ) ,
370
- target : AnyLinkableHash :: from ( target_entry_hash. clone ( ) ) ,
369
+ source : agent. clone ( ) . into ( ) ,
370
+ target : AnyLinkableHash :: from ( target_entry_hash. clone ( ) ) ,
371
371
prefix : None ,
372
372
content : Some ( content. into ( ) ) ,
373
373
value : Some ( "0.8" . into ( ) ) ,
@@ -432,8 +432,8 @@ pub async fn test_query_mine_with_content_full() {
432
432
& cell1. zome ( "trust_atom" ) ,
433
433
"create_trust_atom" ,
434
434
TrustAtomInput {
435
- source : agent. clone ( ) . into ( ) ,
436
- target : AnyLinkableHash :: from ( target_entry_hash. clone ( ) ) ,
435
+ source : agent. clone ( ) . into ( ) ,
436
+ target : AnyLinkableHash :: from ( target_entry_hash. clone ( ) ) ,
437
437
prefix : None ,
438
438
content : Some ( content_full. into ( ) ) ,
439
439
value : Some ( "0.8" . into ( ) ) ,
@@ -518,31 +518,6 @@ pub async fn test_get_extra() {
518
518
mock_extra_entry_hash,
519
519
)
520
520
. await ;
521
-
522
- // <<<<<<< HEAD
523
- let field1 = mock_extra_data
524
- . fields
525
- . get_key_value ( & "extra_stuff" . to_string ( ) )
526
- . unwrap ( ) ;
527
- let field2 = mock_extra_data
528
- . fields
529
- . get_key_value ( & "another_thing" . to_string ( ) )
530
- . unwrap ( ) ;
531
-
532
- assert_eq ! (
533
- field1,
534
- (
535
- & "extra_stuff" . to_string( ) ,
536
- & "Say some extra stuff here" . to_string( )
537
- )
538
- ) ;
539
- assert_eq ! (
540
- field2,
541
- (
542
- & "another_thing" . to_string( ) ,
543
- & "Put more information here" . to_string( )
544
- )
545
- ) ;
546
521
}
547
522
548
523
#[ tokio:: test( flavor = "multi_thread" ) ]
@@ -599,13 +574,14 @@ pub async fn test_get_entry_by_headerhash() {
599
574
// assert_eq!(mock_trust_atom, fetched_atom);
600
575
// assert_eq!(fetched_atom.target, ipfs_address);
601
576
// }
577
+
602
578
// =======
603
579
// =======
604
580
// =======
605
581
// =======
606
- assert_eq ! ( extra_map, mock_extra_data. clone( ) . field) ;
607
- assert_eq ! ( mock_extra_data. clone( ) , mock_entry. clone( ) ) ;
608
- }
582
+ // assert_eq!(extra_map, mock_extra_data.clone().field);
583
+ // assert_eq!(mock_extra_data.clone(), mock_entry.clone());
584
+ // }
609
585
610
586
#[ tokio:: test( flavor = "multi_thread" ) ]
611
587
pub async fn test_create_trust_atom_with_empty_chunks ( ) {
0 commit comments