(
&self,
debug_info: &mut DebugInfo,
_view: &BinaryView,
_debug_file: &BinaryView,
_progress: Box<dyn Fn(usize, usize) -> Result<(), ()>>,
)
| 15 | } |
| 16 | |
| 17 | fn parse_info( |
| 18 | &self, |
| 19 | debug_info: &mut DebugInfo, |
| 20 | _view: &BinaryView, |
| 21 | _debug_file: &BinaryView, |
| 22 | _progress: Box<dyn Fn(usize, usize) -> Result<(), ()>>, |
| 23 | ) -> bool { |
| 24 | let test_type = TypeBuilder::int(4, true).finalize(); |
| 25 | let test_struct = StructureBuilder::new() |
| 26 | .append( |
| 27 | &test_type, |
| 28 | "myfield", |
| 29 | MemberAccess::PublicAccess, |
| 30 | MemberScope::NoScope, |
| 31 | ) |
| 32 | .finalize(); |
| 33 | let new_type = TypeBuilder::structure(&test_struct).finalize(); |
| 34 | debug_info.add_type("test_dbg", &new_type, &[]); |
| 35 | |
| 36 | let func_type = Type::function(&test_type, vec![], true); |
| 37 | |
| 38 | let test_func = DebugFunctionInfo::new( |
| 39 | None, |
| 40 | None, |
| 41 | Some("test_func".to_string()), |
| 42 | Some(func_type), |
| 43 | Some(0x3b440), |
| 44 | None, |
| 45 | vec![], |
| 46 | vec![], |
| 47 | ); |
| 48 | debug_info.add_function(&test_func); |
| 49 | true |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | #[test] |
nothing calls this directly
no test coverage detected