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

Function main

debugger/tests/return_array.rs:9–522  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7
8#[tokio::test]
9async fn main() -> Result<()> {
10 let testcase = "return_array";
11 let (producer, consumer) = setup(testcase).await?;
12
13 let debugger_params = debugger_params_from_file(testcase);
14 Debugger::run(debugger_params, producer.clone());
15
16 producer.end().await?;
17
18 let expected = vec![
19 Expected::FnCall {
20 name: "main".into(),
21 args: vec![],
22 },
23 Expected::FnCall {
24 name: "u8_10".into(),
25 args: vec![],
26 },
27 Expected::FnRet {
28 name: "u8_10".into(),
29 value: "[0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a]".into(),
30 },
31 Expected::FnCall {
32 name: "u8_9".into(),
33 args: vec![],
34 },
35 Expected::FnRet {
36 name: "u8_9".into(),
37 value: "[0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09]".into(),
38 },
39 Expected::FnCall {
40 name: "u8_8".into(),
41 args: vec![],
42 },
43 Expected::FnRet {
44 name: "u8_8".into(),
45 value: "[0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08]".into(),
46 },
47 Expected::FnCall {
48 name: "u8_6".into(),
49 args: vec![],
50 },
51 Expected::FnRet {
52 name: "u8_6".into(),
53 value: "[0x01, 0x02, 0x03, 0x04, 0x05, 0x06]".into(),
54 },
55 Expected::FnCall {
56 name: "u8_4".into(),
57 args: vec![],
58 },
59 Expected::FnRet {
60 name: "u8_4".into(),
61 value: "[0x01, 0x02, 0x03, 0x04]".into(),
62 },
63 Expected::FnCall {
64 name: "u8_2".into(),
65 args: vec![],
66 },

Callers

nothing calls this directly

Calls 8

setupFunction · 0.85
into_bytesMethod · 0.80
nextMethod · 0.80
verifyFunction · 0.70
runFunction · 0.50
endMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected