@@ -6,7 +6,7 @@ mod common;
66#[ cfg( feature = "x86" ) ]
77fn read_x86 ( ) {
88 let diff_config = diff:: DiffObjConfig :: default ( ) ;
9- let obj = obj:: read:: parse ( include_object ! ( "data/x86/staticdebug.obj" ) , & diff_config) . unwrap ( ) ;
9+ let obj = obj:: read:: parse ( include_object ! ( "data/x86/staticdebug.obj" ) , & diff_config, obj :: DiffSide :: Base ) . unwrap ( ) ;
1010 insta:: assert_debug_snapshot!( obj) ;
1111 let symbol_idx = obj. symbols . iter ( ) . position ( |s| s. name == "?PrintThing@@YAXXZ" ) . unwrap ( ) ;
1212 let diff = diff:: code:: no_diff_code ( & obj, symbol_idx, & diff_config) . unwrap ( ) ;
@@ -23,15 +23,15 @@ fn read_x86_combine_sections() {
2323 combine_text_sections : true ,
2424 ..Default :: default ( )
2525 } ;
26- let obj = obj:: read:: parse ( include_object ! ( "data/x86/rtest.obj" ) , & diff_config) . unwrap ( ) ;
26+ let obj = obj:: read:: parse ( include_object ! ( "data/x86/rtest.obj" ) , & diff_config, obj :: DiffSide :: Base ) . unwrap ( ) ;
2727 insta:: assert_debug_snapshot!( obj. sections) ;
2828}
2929
3030#[ test]
3131#[ cfg( feature = "x86" ) ]
3232fn read_x86_64 ( ) {
3333 let diff_config = diff:: DiffObjConfig :: default ( ) ;
34- let obj = obj:: read:: parse ( include_object ! ( "data/x86_64/vs2022.o" ) , & diff_config) . unwrap ( ) ;
34+ let obj = obj:: read:: parse ( include_object ! ( "data/x86_64/vs2022.o" ) , & diff_config, obj :: DiffSide :: Base ) . unwrap ( ) ;
3535 insta:: assert_debug_snapshot!( obj) ;
3636 let symbol_idx =
3737 obj. symbols . iter ( ) . position ( |s| s. name == "?Dot@Vector@@QEAAMPEAU1@@Z" ) . unwrap ( ) ;
@@ -45,7 +45,7 @@ fn read_x86_64() {
4545#[ cfg( feature = "x86" ) ]
4646fn display_section_ordering ( ) {
4747 let diff_config = diff:: DiffObjConfig :: default ( ) ;
48- let obj = obj:: read:: parse ( include_object ! ( "data/x86/basenode.obj" ) , & diff_config) . unwrap ( ) ;
48+ let obj = obj:: read:: parse ( include_object ! ( "data/x86/basenode.obj" ) , & diff_config, obj :: DiffSide :: Base ) . unwrap ( ) ;
4949 let obj_diff =
5050 diff:: diff_objs ( Some ( & obj) , None , None , & diff_config, & diff:: MappingConfig :: default ( ) )
5151 . unwrap ( )
@@ -60,7 +60,7 @@ fn display_section_ordering() {
6060#[ cfg( feature = "x86" ) ]
6161fn read_x86_jumptable ( ) {
6262 let diff_config = diff:: DiffObjConfig :: default ( ) ;
63- let obj = obj:: read:: parse ( include_object ! ( "data/x86/jumptable.o" ) , & diff_config) . unwrap ( ) ;
63+ let obj = obj:: read:: parse ( include_object ! ( "data/x86/jumptable.o" ) , & diff_config, obj :: DiffSide :: Base ) . unwrap ( ) ;
6464 insta:: assert_debug_snapshot!( obj) ;
6565 let symbol_idx = obj. symbols . iter ( ) . position ( |s| s. name == "?test@@YAHH@Z" ) . unwrap ( ) ;
6666 let diff = diff:: code:: no_diff_code ( & obj, symbol_idx, & diff_config) . unwrap ( ) ;
@@ -74,6 +74,6 @@ fn read_x86_jumptable() {
7474#[ cfg( feature = "x86" ) ]
7575fn read_x86_local_labels ( ) {
7676 let diff_config = diff:: DiffObjConfig :: default ( ) ;
77- let obj = obj:: read:: parse ( include_object ! ( "data/x86/local_labels.obj" ) , & diff_config) . unwrap ( ) ;
77+ let obj = obj:: read:: parse ( include_object ! ( "data/x86/local_labels.obj" ) , & diff_config, obj :: DiffSide :: Base ) . unwrap ( ) ;
7878 insta:: assert_debug_snapshot!( obj) ;
7979}
0 commit comments