pub fn assert_events_eq(
    a: &HashMap<Option<String>, Vec<TestEvent>>,
    b: &HashMap<Option<String>, Vec<TestEvent>>,
) {
    let a_keys: HashSet<Option<String>> = b.keys().cloned().collect();
    let b_keys: HashSet<Option<String>> = a.keys().cloned().collect();
    assert_eq!(a_keys, b_keys);
    for key in b.keys() {
        assert_eq!(b.get(key).unwrap(), a.get(key).unwrap())
    }
}
/// Helper for comparing grouped test events. Produces more readable diffs than diffing the entire
/// two maps.
Helper for comparing grouped test events. Produces more readable diffs than diffing the entire
two maps.
Helper for comparing grouped test events . Produces more readable diffs than diffing the entire two maps .
pub fn assert_events_eq(
    a: &HashMap<Option<String>, Vec<TestEvent>>,
    b: &HashMap<Option<String>, Vec<TestEvent>>,
) {
    let a_keys: HashSet<Option<String>> = b.keys().cloned().collect();
    let b_keys: HashSet<Option<String>> = a.keys().cloned().collect();
    assert_eq!(a_keys, b_keys);
    for key in b.keys() {
        assert_eq!(b.get(key).unwrap(), a.get(key).unwrap())
    }
}
pub fn assert_events_eq ( a : & HashMap < Option < String > , Vec < TestEvent > > , b : & HashMap < Option < String > , Vec < TestEvent > > , ) { let a_keys : HashSet < Option < String > > = b . keys ( ) . cloned ( ) . collect ( ) ; let b_keys : HashSet < Option < String > > = a . keys ( ) . cloned ( ) . collect ( ) ; assert_eq ! ( a_keys b_keys ) ; for key in b . keys ( ) { assert_eq ! ( b get ( key ) unwrap ( ) a get ( key ) unwrap ( ) ) } }
Helper for comparing grouped test events.
Helper for comparing grouped test events .
a
&HashMap<Option<String>, Vec<TestEvent>>
b
&HashMap<Option<String>, Vec<TestEvent>>
a
&HashMap<Option<String>, Vec<TestEvent>>
b
&HashMap<Option<String>, Vec<TestEvent>>