diff --git a/tests/common/SetupStack.hpp b/tests/common/SetupStack.hpp index 67715c8d0ce903a745f3be5193246e88742bbcfc..e2bd85f2aeaa903f65854357d5a51834f43f0c57 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 e1ab056d466b8f292daf9ec7b0005e01be9d8529..2be9f34d53ef3a71ea93730b10c426f98d9fdac7 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 b3fe64f48c7a0376c67b81dbc646d3d5c037f4a6..bbe30c312dcf982218ce67b9bb5437bde7fa04a3 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 6e93f8d77dfb9e6507bfff3b6b5c4fbe157e6749..299a0742964bbb42b442bc3cfac31d5fbad16ccf 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 17f55ec2e6f92c7a3a4db94aec6353b90f0532d4..4c515a1f658b865226dbcfbdf4536cdc77784c27 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 e0676e68fd8a575d7324c67e75c20bf9bd794334..9f3e685801b9b70b347dddb43506a8b063eae55c 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;