Skip to content

Commit 2ef37db

Browse files
committed
Adapt DataProcessorSpec.h to formatting rules
1 parent 21b097b commit 2ef37db

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

Framework/Core/include/Framework/DataProcessorSpec.h

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,21 @@
1010
#ifndef FRAMEWORK_DATAPROCESSORSPEC_H
1111
#define FRAMEWORK_DATAPROCESSORSPEC_H
1212

13-
#include "Framework/InputSpec.h"
14-
#include "Framework/OutputSpec.h"
13+
#include "Framework/AlgorithmSpec.h"
1514
#include "Framework/ConfigParamSpec.h"
16-
#include "Framework/DataRef.h"
1715
#include "Framework/DataAllocator.h"
18-
#include "Framework/AlgorithmSpec.h"
1916
#include "Framework/DataProcessorLabel.h"
17+
#include "Framework/DataRef.h"
18+
#include "Framework/InputSpec.h"
19+
#include "Framework/OutputSpec.h"
2020

21-
#include <vector>
2221
#include <string>
22+
#include <vector>
2323

24-
namespace o2 {
25-
namespace framework {
24+
namespace o2
25+
{
26+
namespace framework
27+
{
2628

2729
using Inputs = std::vector<InputSpec>;
2830
using Outputs = std::vector<OutputSpec>;

Framework/Core/test/test_DataProcessorSpec.cxx

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,27 @@
88
// granted to it by virtue of its status as an Intergovernmental Organization
99
// or submit itself to any jurisdiction.
1010

11-
1211
#define BOOST_TEST_MODULE Test Framework DataProcessorSpec
1312
#define BOOST_TEST_MAIN
1413
#define BOOST_TEST_DYN_LINK
1514

16-
#include "Framework/DataProcessorSpec.h"
1715
#include <boost/test/unit_test.hpp>
16+
#include "Framework/DataProcessorSpec.h"
1817

19-
BOOST_AUTO_TEST_CASE(TestServiceRegistry) {
18+
BOOST_AUTO_TEST_CASE(TestServiceRegistry)
19+
{
2020
using namespace o2::framework;
21-
DataProcessorSpec spec{
22-
"test",
23-
{},
24-
{},
25-
AlgorithmSpec{
26-
[](ProcessingContext &ctx) {}
27-
},
28-
{
29-
ConfigParamSpec{"channel-config", VariantType::String, "name=foo,type=sub,method=connect,address=tcp://localhost:5450,rateLogging=1", {"Out-of-band channel config"}}
30-
},
31-
{},
32-
{DataProcessorLabel{"label"}}
33-
};
21+
DataProcessorSpec spec{ "test",
22+
{},
23+
{},
24+
AlgorithmSpec{ [](ProcessingContext& ctx) {} },
25+
{ ConfigParamSpec{
26+
"channel-config",
27+
VariantType::String,
28+
"name=foo,type=sub,method=connect,address=tcp://localhost:5450,rateLogging=1",
29+
{ "Out-of-band channel config" } } },
30+
{},
31+
{ DataProcessorLabel{ "label" } } };
3432

3533
BOOST_CHECK_EQUAL(spec.labels.size(), 1);
3634
}

0 commit comments

Comments
 (0)