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

Function TEST

pj_datastore/tests/data_processor_test.cpp:37–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35};
36
37TEST(DataProcessorTest, ApplyBatchRunsEverySample) {
38 PassThrough proc;
39 std::vector<Sample> in;
40 in.push_back(Sample::scalar(1, PJ::VarValue{1.0}));
41 in.push_back(Sample::scalar(2, PJ::VarValue{2.0}));
42 in.push_back(Sample::scalar(3, PJ::VarValue{3.0}));
43 const auto out = proc.applyBatch(in);
44 ASSERT_EQ(out.size(), 3u);
45 EXPECT_EQ(out[2].raw_ts_ns, 3);
46}
47
48TEST(DataProcessorTest, AppendTailAppendsToExistingOutput) {
49 PassThrough proc;

Callers

nothing calls this directly

Calls 4

applyBatchMethod · 0.80
appendTailMethod · 0.80
sizeMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected