| 69 | } |
| 70 | |
| 71 | TEST(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 | |
| 88 | TEST(DataProcessorsRuntimeHostTest, ListAndConfigRoundTrip) { |
| 89 | Fixture fx; |
nothing calls this directly
no test coverage detected