23std::unique_ptr<o2::framework::ConfigContext>
mockupLabels(std::string labelArg)
27 std::vector<std::unique_ptr<ParamRetriever>> retrievers;
29 specs.push_back(
ConfigParamSpec{
"labels", VariantType::String, std::move(labelArg), {
"labels specification"}});
30 auto store = std::make_unique<ConfigParamStore>(specs, std::move(retrievers));
35 auto context = std::make_unique<ConfigContext>(registry,
ServiceRegistryRef{services}, 0,
nullptr);
60 REQUIRE(workflow[0].labels[0].
value ==
"abc");
67 REQUIRE(workflow[0].labels[0].
value ==
"a1");
68 REQUIRE(workflow[0].labels[1].
value ==
"a2");
69 REQUIRE(workflow[1].labels[0].
value ==
"b1");
70 REQUIRE(workflow[2].labels[0].
value ==
"c1");
71 REQUIRE(workflow[2].labels[1].
value ==
"c2");
72 REQUIRE(workflow[2].labels[2].
value ==
"c3");
79 REQUIRE(workflow[0].labels.size() == 1);
80 REQUIRE(workflow[0].labels[0].
value ==
"a1");
85 workflow[0].labels.push_back({
"a1"});
88 REQUIRE(workflow[0].labels.size() == 1);
89 REQUIRE(workflow[0].labels[0].
value ==
"a1");
void overrideLabels(o2::framework::ConfigContext &ctx, std::vector< o2::framework::DataProcessorSpec > &workflow)
Helper used to add labels to Data Processors.