MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / readValues

Function readValues

pj_runtime/tests/data_processor_service_test.cpp:53–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51)LUAU";
52
53std::vector<double> readValues(DataEngine& engine, TopicId tid) {
54 std::vector<double> out;
55 const TopicStorage* storage = engine.getTopicStorage(tid);
56 if (!storage) {
57 return out;
58 }
59 auto cursor = rangeQuery(storage->sealedChunks(), 0, std::numeric_limits<Timestamp>::max());
60 cursor.forEach([&](const SampleRow& row) { out.push_back(row.chunk->readNumericAsDouble(0, row.row_index)); });
61 return out;
62}
63
64TEST(DataProcessorServiceTest, AppliesAbsoluteFilterAndMaterializesOutput) {
65 DataEngine engine;

Callers 2

TESTFunction · 0.70
runPausedIntegralLuauFunction · 0.70

Calls 4

rangeQueryFunction · 0.85
getTopicStorageMethod · 0.80
forEachMethod · 0.80
readNumericAsDoubleMethod · 0.80

Tested by

no test coverage detected