From 8581b15f6f8bd77db2aeb9a77ff20d263caf7162 Mon Sep 17 00:00:00 2001 From: Barthelemy Date: Tue, 22 Oct 2024 15:18:58 +0200 Subject: [PATCH] Format --- Framework/src/PostProcessingConfig.cxx | 6 +++--- Framework/src/UserCodeInterface.cxx | 8 +++++--- Framework/test/testCheck.cxx | 5 ++--- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/Framework/src/PostProcessingConfig.cxx b/Framework/src/PostProcessingConfig.cxx index 49a521fda..53d6f893d 100644 --- a/Framework/src/PostProcessingConfig.cxx +++ b/Framework/src/PostProcessingConfig.cxx @@ -39,9 +39,9 @@ PostProcessingConfig::PostProcessingConfig(const std::string& id, const boost::p detectorName = config.get("qc.postprocessing." + id + ".detectorName", "MISC"); consulUrl = config.get("qc.config.consul.url", ""); conditionUrl = config.get("qc.config.conditionDB.url", ""); - std::unordered_map dbConfig { - {"implementation", config.get("qc.config.database.implementation")}, - {"host", config.get("qc.config.database.host")} + std::unordered_map dbConfig{ + { "implementation", config.get("qc.config.database.implementation") }, + { "host", config.get("qc.config.database.host") } }; database = dbConfig; diff --git a/Framework/src/UserCodeInterface.cxx b/Framework/src/UserCodeInterface.cxx index 565716ab2..96ee5bcdb 100644 --- a/Framework/src/UserCodeInterface.cxx +++ b/Framework/src/UserCodeInterface.cxx @@ -31,17 +31,19 @@ void UserCodeInterface::setCustomParameters(const CustomParameters& parameters) configure(); } -const std::string& UserCodeInterface::getName() const { +const std::string& UserCodeInterface::getName() const +{ return mName; } -void UserCodeInterface::setName(const std::string& name) { +void UserCodeInterface::setName(const std::string& name) +{ mName = name; } void UserCodeInterface::setDatabase(std::unordered_map dbConfig) { - if(dbConfig.count("implementation") == 0 || dbConfig.count("host") == 0) { + if (dbConfig.count("implementation") == 0 || dbConfig.count("host") == 0) { ILOG(Error, Devel) << "dbConfig is incomplete, we don't build the user code database instance" << ENDM; throw std::invalid_argument("Cannot set database in UserCodeInterface"); } diff --git a/Framework/test/testCheck.cxx b/Framework/test/testCheck.cxx index 3fe74db26..a4d336aff 100644 --- a/Framework/test/testCheck.cxx +++ b/Framework/test/testCheck.cxx @@ -144,7 +144,7 @@ TEST_CASE("test_check_postprocessing") TEST_CASE("test_check_activity") { - Check check({ "QcSkeleton", + Check check({ "QcSkeleton", "o2::quality_control_modules::skeleton::SkeletonCheck", "TST", "", @@ -154,8 +154,7 @@ TEST_CASE("test_check_activity") "test", UpdatePolicyType::OnAny, {}, - true } - ); + true }); std::map> moMap{ { "abcTask/test1", dummyMO("test1") },