Skip to content

Commit e4dfd2f

Browse files
authored
Fix formatting in tests (#12559)
1 parent cd2008f commit e4dfd2f

11 files changed

+15
-16
lines changed

Framework/Core/test/test_Expressions.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ static BindingNode testInt{"testInt", 6, atype::INT32};
3232

3333
namespace o2::aod::track
3434
{
35-
DECLARE_SOA_EXPRESSION_COLUMN(Pze, pz, float, o2::aod::track::tgl*(1.f / o2::aod::track::signed1Pt));
35+
DECLARE_SOA_EXPRESSION_COLUMN(Pze, pz, float, o2::aod::track::tgl * (1.f / o2::aod::track::signed1Pt));
3636
} // namespace o2::aod::track
3737

3838
TEST_CASE("TestTreeParsing")

Framework/Core/test/test_ExternalFairMQDeviceWorkflow.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ std::vector<DataProcessorSpec> defineDataProcessing(ConfigContext const& config)
403403
output.AddPart(std::move(inputs.At(msgidx)));
404404
}
405405
}
406-
auto &messageContext = services.get<MessageContext>();
406+
auto& messageContext = services.get<MessageContext>();
407407
o2::framework::sendOnChannel(*device, output, channelName, (size_t)-1);
408408
messageContext.fakeDispatch();
409409
return output.Size() != 0;

Framework/Core/test/test_FrameworkDataFlowToO2Control.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ namespace
3131
{
3232
WorkflowSpec defineDataProcessing()
3333
{
34-
return {{.name = "A", //
34+
return {{.name = "A", //
3535
.outputs = Outputs{OutputSpec{"TST", "A1"}, OutputSpec{"TST", "A2"}}, // A1 will be consumed twice, A2 is dangling
3636
.algorithm = AlgorithmSpec{}, //
3737
.options = {ConfigParamSpec{"channel-config", VariantType::String, // raw input channel

Framework/Core/test/test_O2DatabasePDG.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ struct PdgTest {
4040
TParticlePDG* p = pdgOld->GetParticle(300553);
4141
ASSERT_ERROR(p != nullptr);
4242
ASSERT_ERROR(p->Mass() == 10.580);
43-
ASSERT_ERROR(p->Stable() == kFALSE);
43+
ASSERT_ERROR(p->Stable() == kFALSE);
4444
ASSERT_ERROR(p->Charge() == 0);
4545
ASSERT_ERROR(p->Width() == 0.000);
4646

Framework/Core/test/test_Parallel.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ std::vector<DataProcessorSpec> defineDataProcessing(ConfigContext const&)
5757
Outputs{
5858
{"TPC", "CLUSTERS_P", 0, Lifetime::Timeframe}},
5959
AlgorithmSpec{
60-
//CLion says it ambiguous without (AlgorithmSpec::ProcessCallback), but cmake compiles fine anyway.
60+
// CLion says it ambiguous without (AlgorithmSpec::ProcessCallback), but cmake compiles fine anyway.
6161
(AlgorithmSpec::ProcessCallback)someProcessingStageAlgorithm}},
6262
parallelSize,
6363
[](DataProcessorSpec& spec, size_t index) {
@@ -95,7 +95,7 @@ std::vector<DataProcessorSpec> defineDataProcessing(ConfigContext const&)
9595
auto matcher = DataSpecUtils::asConcreteDataMatcher(*inputSpec);
9696
o2::header::DataDescription outputDescription = matcher.description;
9797

98-
//todo: better sampled data flagging
98+
// todo: better sampled data flagging
9999
size_t len = strlen(outputDescription.str);
100100
if (len < outputDescription.size - 2) {
101101
outputDescription.str[len] = '_';
@@ -113,7 +113,7 @@ std::vector<DataProcessorSpec> defineDataProcessing(ConfigContext const&)
113113
const auto* inputHeader = DataRefUtils::getHeader<o2::header::DataHeader*>(input);
114114
auto& output = ctx.outputs().make<char>(description, inputHeader->size());
115115

116-
//todo: use some std function or adopt(), when it is available for POD data
116+
// todo: use some std function or adopt(), when it is available for POD data
117117
const char* input_ptr = input.payload;
118118
for (char& it : output) {
119119
it = *input_ptr++;

Framework/Core/test/test_Root2ArrowTable.cxx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ TEST_CASE("RootTree2Table")
4545
t1.Branch("ev", &ev, "ev/I");
4646
t1.Branch("xyz", xyz, "xyz[3]/F");
4747
t1.Branch("ij", ij, "ij[2]/I");
48-
//fill the tree
48+
// fill the tree
4949
for (Int_t i = 0; i < 1000; i++) {
5050
xyz[0] = 1;
5151
xyz[1] = 2;
@@ -91,7 +91,6 @@ TEST_CASE("RootTree2Table")
9191
REQUIRE(array->length() == 3000);
9292
const float* c = reinterpret_cast<float const*>(array->values()->data());
9393

94-
9594
CHECK(c[0] == 1);
9695
CHECK(c[1] == 2);
9796
CHECK(c[2] == 1);
@@ -146,7 +145,7 @@ TEST_CASE("RootTree2TableViaASoA")
146145
t2.Branch("ev", &ev, "ev/I");
147146
t2.Branch("xyz", xyz, "xyz[3]/F");
148147
t2.Branch("ij", ij, "ij[2]/I");
149-
//fill the tree
148+
// fill the tree
150149
for (Int_t i = 0; i < 1000; i++) {
151150
gRandom->Rannor(xyz[0], xyz[1]);
152151
gRandom->Rannor(px, py);

Framework/Core/test/test_Services.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ static ServiceRegistry::Salt salt_1 = ServiceRegistry::Salt{1, 0};
9494
static ServiceRegistry::Salt salt_2 = ServiceRegistry::Salt{2, 0};
9595
static ServiceRegistry::Salt salt_3 = ServiceRegistry::Salt{3, 0};
9696
static ServiceRegistry::Salt salt_1_1 = ServiceRegistry::Salt{1, 1};
97-
}
97+
} // namespace o2::framework
9898

9999
TEST_CASE("TestSerialServices")
100100
{

Framework/Core/test/test_StaggeringWorkflow.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ void customize(std::vector<o2::framework::CompletionPolicy>& policies)
5353
// search for spec names starting with "processor"
5454
return spec.name.find("processor") == 0;
5555
},
56-
[](auto const&, auto const&, auto &) { return o2::framework::CompletionPolicy::CompletionOp::Consume; }});
56+
[](auto const&, auto const&, auto&) { return o2::framework::CompletionPolicy::CompletionOp::Consume; }});
5757
}
5858

5959
#include "Framework/runDataProcessing.h"

Framework/Core/test/test_TableBuilder.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ namespace test2
3232
DECLARE_SOA_COLUMN_FULL(X, x, uint64_t, "x");
3333
DECLARE_SOA_COLUMN_FULL(Y, y, uint64_t, "y");
3434
DECLARE_SOA_COLUMN_FULL(Pos, pos, int[4], "pos");
35-
} // namespace test
35+
} // namespace test2
3636

3737
using TestTable = o2::soa::Table<test2::X, test2::Y>;
3838
using ArrayTable = o2::soa::Table<test2::Pos>;
@@ -295,7 +295,7 @@ TEST_CASE("TestColumnCount")
295295

296296
TEST_CASE("TestMakeFields")
297297
{
298-
auto fields = TableBuilderHelpers::makeFields<int, float>({ "i", "f" });
298+
auto fields = TableBuilderHelpers::makeFields<int, float>({"i", "f"});
299299
REQUIRE(fields.size() == 2);
300300
REQUIRE(fields[0]->name() == "i");
301301
REQUIRE(fields[1]->name() == "f");

Framework/Core/test/test_TreeToTable.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ TEST_CASE("TreeToTableConversion")
5353
t1.Branch("xyzw", xyzw, "xyzw[96]/F");
5454
t1.Branch("small", &b, "small/b");
5555

56-
//fill the tree
56+
// fill the tree
5757
int ntruein[2] = {0};
5858
for (int i = 0; i < ndp; i++) {
5959
ok = (i % 2) == 0;

0 commit comments

Comments
 (0)