Project
Loading...
Searching...
No Matches
test_DataProcessorSpec.cxx
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
12#include <catch_amalgamated.hpp>
16
17TEST_CASE("TestDataProcessorSpecHelpers")
18{
19 using namespace o2::framework;
20 DataProcessorSpec spec{.name = "test",
21 .algorithm = AlgorithmSpec{[](ProcessingContext& ctx) {}},
22 .options = {ConfigParamSpec{
23 "channel-config",
24 VariantType::String,
25 "name=foo,type=sub,method=connect,address=tcp://localhost:5450,rateLogging=1",
26 {"Out-of-band channel config"}}},
27 .labels = {DataProcessorLabel{"label"},
28 DataProcessorLabel{"label3"}}};
29
30 REQUIRE(spec.labels.size() == 2);
31 REQUIRE(DataProcessorSpecHelpers::hasLabel(spec, "label") == true);
32 REQUIRE(DataProcessorSpecHelpers::hasLabel(spec, "label2") == false);
33 REQUIRE(DataProcessorSpecHelpers::hasLabel(spec, "label3") == true);
34}
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
A label that can be associated to a DataProcessorSpec.
TEST_CASE("TestDataProcessorSpecHelpers")