From aea9b9b89eeababb113700b4cd3770202f17c8e0 Mon Sep 17 00:00:00 2001 From: ralfulrich <ralf.ulrich@kit.edu> Date: Sun, 16 Jan 2022 12:10:37 +0100 Subject: [PATCH] format --- tests/common/SetupStack.hpp | 14 +++++++------- tests/common/SetupTestEnvironment.hpp | 19 +++++++++---------- tests/common/SetupTestStack.hpp | 15 ++++++++------- tests/common/TestStack.hpp | 13 +++++++------ tests/modules/testCONEX.cpp | 8 ++++---- tests/modules/testQGSJetII.cpp | 3 +-- 6 files changed, 36 insertions(+), 36 deletions(-) diff --git a/tests/common/SetupStack.hpp b/tests/common/SetupStack.hpp index 67715c8d0..e2bd85f2a 100644 --- a/tests/common/SetupStack.hpp +++ b/tests/common/SetupStack.hpp @@ -1,9 +1,9 @@ /* -* (c) Copyright 2020 CORSIKA Project, corsika-project@lists.kit.edu -* -* This software is distributed under the terms of the GNU General Public -* Licence version 3 (GPL Version 3). See file LICENSE for a full version of -* the license. + * (c) Copyright 2020 CORSIKA Project, corsika-project@lists.kit.edu + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. */ #include <tests/common/TestStack.hpp> @@ -22,14 +22,14 @@ namespace corsika::test { #include <corsika/stack/history/HistorySecondaryProducer.hpp> /* - * the version with history + * the version with history */ using Stack = detaill::StackWithHistory; #else // WITH_HISTORY /* - * the version without history + * the version without history */ using Stack = detail::StackWithGeometry; diff --git a/tests/common/SetupTestEnvironment.hpp b/tests/common/SetupTestEnvironment.hpp index e1ab056d4..2be9f34d5 100644 --- a/tests/common/SetupTestEnvironment.hpp +++ b/tests/common/SetupTestEnvironment.hpp @@ -20,17 +20,17 @@ namespace corsika { - using DummyEnvironmentInterface = IMediumPropertyModel<IMagneticFieldModel<IMediumModel>>; + using DummyEnvironmentInterface = + IMediumPropertyModel<IMagneticFieldModel<IMediumModel>>; using DummyEnvironment = Environment<DummyEnvironmentInterface>; - namespace setup::testing { /** - * \function setup_environment - * - * standard environment for unit testing. - * + * \function setup_environment + * + * standard environment for unit testing. + * */ inline std::tuple<std::unique_ptr<DummyEnvironment>, CoordinateSystemPtr const*, @@ -43,13 +43,12 @@ namespace corsika { CoordinateSystemPtr const& cs = env->getCoordinateSystem(); /** - * our world is a sphere at 0,0,0 with R=infty + * our world is a sphere at 0,0,0 with R=infty */ - auto world = - DummyEnvironment::createNode<Sphere>(Point{cs, 0_m, 0_m, 0_m}, 100_km); + auto world = DummyEnvironment::createNode<Sphere>(Point{cs, 0_m, 0_m, 0_m}, 100_km); /** - * construct suited environment medium model: + * construct suited environment medium model: */ using MyHomogeneousModel = MediumPropertyModel< UniformMagneticField<HomogeneousMedium<DummyEnvironmentInterface>>>; diff --git a/tests/common/SetupTestStack.hpp b/tests/common/SetupTestStack.hpp index b3fe64f48..bbe30c312 100644 --- a/tests/common/SetupTestStack.hpp +++ b/tests/common/SetupTestStack.hpp @@ -27,18 +27,19 @@ namespace corsika { - using DummyEnvironmentInterface = IMediumPropertyModel<IMagneticFieldModel<IMediumModel>>; + using DummyEnvironmentInterface = + IMediumPropertyModel<IMagneticFieldModel<IMediumModel>>; using DummyEnvironment = Environment<DummyEnvironmentInterface>; namespace setup::testing { /** - * \function setup_stack - * - * standard stack setup for unit tests. - * - * \return a tuple with element 0 being a Stack object filled with - * one particle, and element 1 the StackView on it. + * \function setup_stack + * + * standard stack setup for unit tests. + * + * \return a tuple with element 0 being a Stack object filled with + * one particle, and element 1 the StackView on it. */ inline std::tuple<std::unique_ptr<test::Stack>, std::unique_ptr<test::StackView>> diff --git a/tests/common/TestStack.hpp b/tests/common/TestStack.hpp index 6e93f8d77..299a07429 100644 --- a/tests/common/TestStack.hpp +++ b/tests/common/TestStack.hpp @@ -1,9 +1,9 @@ /* -* (c) Copyright 2020 CORSIKA Project, corsika-project@lists.kit.edu -* -* This software is distributed under the terms of the GNU General Public -* Licence version 3 (GPL Version 3). See file LICENSE for a full version of -* the license. + * (c) Copyright 2020 CORSIKA Project, corsika-project@lists.kit.edu + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. */ #pragma once @@ -20,7 +20,8 @@ namespace corsika { // maybe use a similar copy of this file with defined templates for tests? - using DummyEnvironmentInterface = IMediumPropertyModel<IMagneticFieldModel<IMediumModel>>; + using DummyEnvironmentInterface = + IMediumPropertyModel<IMagneticFieldModel<IMediumModel>>; using DummyEnvironment = Environment<DummyEnvironmentInterface>; namespace test::detail { diff --git a/tests/modules/testCONEX.cpp b/tests/modules/testCONEX.cpp index 17f55ec2e..4c515a1f6 100644 --- a/tests/modules/testCONEX.cpp +++ b/tests/modules/testCONEX.cpp @@ -70,10 +70,10 @@ TEST_CASE("CONEX") { auto builder = make_layered_spherical_atmosphere_builder< DummyEnvironmentInterface, MExtraEnvirnoment>::create(center, - corsika::conex::earthRadius, - Medium::AirDry1Atm, - Vector{rootCS, 0_T, 50_mT, - 0_T}); + corsika::conex::earthRadius, + Medium::AirDry1Atm, + Vector{rootCS, 0_T, 50_mT, + 0_T}); builder.setNuclearComposition( {{Code::Nitrogen, Code::Oxygen}, diff --git a/tests/modules/testQGSJetII.cpp b/tests/modules/testQGSJetII.cpp index e0676e68f..9f3e68580 100644 --- a/tests/modules/testQGSJetII.cpp +++ b/tests/modules/testQGSJetII.cpp @@ -242,8 +242,7 @@ TEST_CASE("QgsjetIIInterface", "interaction,processes") { } { // Lambda is internally converted into neutron auto [stackPtr, secViewPtr] = setup::testing::setup_stack( - Code::Lambda0, 100_GeV, (DummyEnvironment::BaseNodeType* const)nodePtr, - *csPtr); + Code::Lambda0, 100_GeV, (DummyEnvironment::BaseNodeType* const)nodePtr, *csPtr); [[maybe_unused]] test::StackView& view = *(secViewPtr.get()); [[maybe_unused]] auto particle = stackPtr->first(); corsika::qgsjetII::InteractionModel model; -- GitLab