firedbg-rust-parser 1.0.0

FireDBG Source Parser for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
mod common;

pub use firedbg_rust_parser::*;
pub use pretty_assertions::assert_eq;

#[test]
fn parse_result_fn() -> anyhow::Result<()> {
    let path = concat!(env!("CARGO_MANIFEST_DIR"), "/tests/common/result_fn.rs");
    let mut breakpoints = parse_file(path)?;
    breakpoints.pop(); // Pop the last `fn get_breakpoints` breakpoint
    assert_eq!(breakpoints, common::result_fn::get_breakpoints());
    Ok(())
}