MCPcopy Create free account
hub / github.com/SeaQL/FireDBG.for.Rust / main

Function main

debugger/tests/return_object.rs:14–201  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12
13#[tokio::test]
14async 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(),

Callers

nothing calls this directly

Calls 8

rustcFunction · 0.85
setupFunction · 0.85
into_bytesMethod · 0.80
nextMethod · 0.80
redact_addrMethod · 0.80
runFunction · 0.50
endMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected