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

Function appendRow

pj_datastore/tests/derived_engine_test.cpp:1498–1506  ·  view source on GitHub ↗

Append one row (ts, value) to an existing scalar topic and commit.

Source from the content-addressed store, hash-verified

1496
1497// Append one row (ts, value) to an existing scalar topic and commit.
1498static void appendRow(DataEngine& engine, PJ::TopicId topic_id, PJ::Timestamp ts, double value) {
1499 DataWriter writer = engine.createWriter();
1500 auto s = writer.beginRow(topic_id, ts);
1501 (void)s;
1502 writer.set(topic_id, 0, value);
1503 auto s2 = writer.finishRow(topic_id);
1504 (void)s2;
1505 engine.commitChunks(writer.flushAll());
1506}
1507
1508TEST(DerivedEngineTest, SisoLateInputCommitTriggersFullRecompute) {
1509 DataEngine engine;

Callers 2

refreshMethod · 0.85
TESTFunction · 0.85

Calls 6

createWriterMethod · 0.80
setMethod · 0.80
beginRowMethod · 0.45
finishRowMethod · 0.45
commitChunksMethod · 0.45
flushAllMethod · 0.45

Tested by

no test coverage detected