()
| 12 | |
| 13 | #[tokio::test] |
| 14 | async fn main() -> Result<()> { |
| 15 | let testcase = "return_object"; |
| 16 | |
| 17 | rustc(&format!("testcases/{testcase}")); |
| 18 | |
| 19 | let debugger_params = DebuggerParams { |
| 20 | binary: format!("testcases/{testcase}.o"), |
| 21 | files: vec![ |
| 22 | Default::default(), |
| 23 | SourceFile { |
| 24 | id: 1, |
| 25 | path: format!("testcases/{testcase}.rs"), |
| 26 | crate_name: testcase.into(), |
| 27 | modified: SystemTime::UNIX_EPOCH, |
| 28 | }, |
| 29 | ], |
| 30 | breakpoints: vec![ |
| 31 | Default::default(), |
| 32 | Breakpoint { |
| 33 | id: 1, |
| 34 | file_id: 1, |
| 35 | loc: LineColumn { |
| 36 | line: 60, |
| 37 | column: Some(12), |
| 38 | }, |
| 39 | loc_end: Some(LineColumn { |
| 40 | line: 61, |
| 41 | column: Some(5), |
| 42 | }), |
| 43 | breakpoint_type: BreakpointType::FunctionCall { |
| 44 | fn_name: "main".into(), |
| 45 | }, |
| 46 | capture: VariableCapture::Arguments, |
| 47 | }, |
| 48 | Breakpoint { |
| 49 | id: 2, |
| 50 | file_id: 1, |
| 51 | loc: LineColumn { |
| 52 | line: 72, |
| 53 | column: None, |
| 54 | }, |
| 55 | loc_end: None, |
| 56 | breakpoint_type: BreakpointType::Breakpoint, |
| 57 | capture: VariableCapture::Only(vec!["car".to_owned()]), |
| 58 | }, |
| 59 | Breakpoint { |
| 60 | id: 3, |
| 61 | file_id: 1, |
| 62 | loc: LineColumn { |
| 63 | line: 29, |
| 64 | column: Some(32), |
| 65 | }, |
| 66 | loc_end: Some(LineColumn { |
| 67 | line: 30, |
| 68 | column: Some(5), |
| 69 | }), |
| 70 | breakpoint_type: BreakpointType::FunctionCall { |
| 71 | fn_name: "create_manual_car".into(), |
nothing calls this directly
no test coverage detected