re_data_loader 0.31.4

Handles loading of Rerun data from file using data loader plugins
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Snapshot test loading an MCAP file containing [`foxglove.PointCloud`] messages.

use crate::loader_mcap::tests::util;

#[test]
fn test_foxglove_point_cloud() {
    let loaded_mcap = util::load_mcap(util::test_asset("foxglove_point_cloud.mcap"));
    // Only snapshot the chunk with the payload, not the metadata chunk.
    let chunk = loaded_mcap.chunks_for_entity("/point_cloud")[1];
    insta::assert_snapshot!(format!("{:-240}", chunk));
}

// TODO(michael): add also a test for the /point_cloud_with_pose channel (relates to RR-3766).