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

Function TEST

pj_runtime/tests/data_processors_runtime_host_test.cpp:71–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71TEST(DataProcessorsRuntimeHostTest, CreateRunsTransformViaAbi) {
72 Fixture fx;
73 fx.seed("speed", {-1.0, 2.0, -3.0});
74 DataProcessorsRuntimeHost bridge(fx.service, "pluginA");
75 sdk::DataProcessorsHostView view(bridge.raw());
76
77 ASSERT_TRUE(view.valid());
78 const auto status = createNegate(view, "negate", "speed", "speed/out");
79 ASSERT_TRUE(status) << status.error();
80
81 const auto recipes = fx.service.transformRecipes();
82 ASSERT_EQ(recipes.size(), 1u);
83 const auto& recipe = recipes.front();
84 EXPECT_EQ(recipe.key, "pluginA/negate");
85 EXPECT_EQ(readValues(fx.engine, recipe.output_topic_ids.front()), (std::vector<double>{1.0, -2.0, 3.0}));
86}
87
88TEST(DataProcessorsRuntimeHostTest, ListAndConfigRoundTrip) {
89 Fixture fx;

Callers

nothing calls this directly

Calls 11

createNegateFunction · 0.85
transformRecipesMethod · 0.80
readValuesFunction · 0.70
seedMethod · 0.45
rawMethod · 0.45
validMethod · 0.45
sizeMethod · 0.45
findMethod · 0.45
removeMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected