Skip to content

Commit

Permalink
integrate StoreEvents on the GC path + tests
Browse files Browse the repository at this point in the history
  • Loading branch information
teh-cmc committed Nov 13, 2023
1 parent 1777a3b commit 0169086
Show file tree
Hide file tree
Showing 2 changed files with 220 additions and 78 deletions.
33 changes: 33 additions & 0 deletions crates/re_arrow_store/src/store_event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,39 @@ mod tests {
view,
);

view.on_events(&store.gc(GarbageCollectionOptions::gc_everything()).0);

similar_asserts::assert_eq!(
GlobalCounts::new(
[
(row_id1, 0), //
(row_id2, 0),
(row_id3, 0),
],
[
(timeline_frame, 0),
(timeline_other, 0),
(timeline_yet_another, 0),
],
[
(entity_path1.clone(), 0), //
(entity_path2.clone(), 0), //
],
[
(InstanceKey::name(), 0), //
(MyPoint::name(), 0), //
(MyColor::name(), 0), //
],
[
(42.into(), 0), //
(666.into(), 0),
(1.into(), 0),
],
0,
),
view,
);

Ok(())
}
}
Loading

0 comments on commit 0169086

Please sign in to comment.