codetracer_trace_types 0.16.1

A library for the schema for the CodeTracer db trace format
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
mod base64;
mod types;
pub use types::*;

#[test]
fn test_equality_of_value_records() {
    let a = ValueRecord::Int { i: 0, type_id: TypeId(0) }; // just an example type_id
    let b = ValueRecord::Int { i: 0, type_id: TypeId(0) };
    let different = ValueRecord::Int { i: 1, type_id: TypeId(0) };

    assert_eq!(a, b);
    assert_ne!(a, different);
}