contentious 0.1.0

Contention experiments
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use contentious::Backtrace;

#[test]
fn test_backtrace_capture() {
    let bt = Backtrace::capture();

    // Should have captured some frames
    assert!(!bt.frames.is_empty(), "Backtrace should capture at least one frame");

    // Each frame should have a file and line number
    for frame in &bt.frames {
        assert!(!frame.file.is_empty(), "Frame should have a filename");
        assert!(frame.line > 0, "Frame should have a valid line number");
    }
}