MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / check_lldb_output

Function check_lldb_output

tests/all/native_debug/lldb.rs:66–77  ·  view source on GitHub ↗
(output: &str, directives: &str)

Source from the content-addressed store, hash-verified

64}
65
66fn check_lldb_output(output: &str, directives: &str) -> Result<()> {
67 let mut builder = CheckerBuilder::new();
68 builder
69 .text(directives)
70 .map_err(|e| format_err!("unable to build checker: {e:?}"))?;
71 let checker = builder.finish();
72 let check = checker
73 .explain(output, NO_VARIABLES)
74 .map_err(|e| format_err!("{e:?}"))?;
75 assert!(check.0, "didn't pass check {}", check.1);
76 Ok(())
77}
78
79#[allow(dead_code, reason = "tested elsewhere")]
80fn dwarf_dead_code() {} // this is tested over in `translate.rs`

Callers 13

dwarf_fib_wasmFunction · 0.85
dwarf_fib_wasm_dwarf5Function · 0.85
dwarf_fib_wasm_split4Function · 0.85
dwarf_genericFunction · 0.85
dwarf_codegen_optimizedFunction · 0.85
dwarf_fraction_normFunction · 0.85
dwarf_spilled_frame_baseFunction · 0.85
dwarf_fissionFunction · 0.85
test_dwarf_simpleFunction · 0.85

Calls 4

OkFunction · 0.85
newFunction · 0.50
textMethod · 0.45
finishMethod · 0.45

Tested by 1

test_dwarf_simpleFunction · 0.68