#include #include #include "error_check.hpp" #define TEST_TAG "[log_empty][archetypes]" // Regression test for #3840 SCENARIO("Log empty data", TEST_TAG) { rerun::RecordingStream stream("empty archetype"); SECTION("Using an existing archetype") { check_logged_error([&] { stream.log("empty", rerun::Points3D(std::vector{})); }); } SECTION("Using an empty component batch") { check_logged_error([&] { stream.log( "empty", rerun::ComponentBatch::empty( rerun::Points3D::Descriptor_positions ) ); }); } }