diff --git a/corsika/modules/conex/Random.hpp b/corsika/modules/conex/Random.hpp index 9532eace8ed29d4322def04b5ad5fee64761b366..31e64361db0c136a0eb11941faa3cdad972da8a3 100644 --- a/corsika/modules/conex/Random.hpp +++ b/corsika/modules/conex/Random.hpp @@ -15,7 +15,7 @@ * \file conex/Random.hpp * * This file is an integral part of the epos interface. It must be - * linked to the executable linked to epos exactly once + * linked to the executable linked to epos exactly once. * * Note, that the fortran random numbe interface functions are all * defined in the epos corsika 8 interface: @@ -34,6 +34,7 @@ namespace conex { + // GCOV_EXCL_START : we don't want to unit-test the random interface float rndm_interface() { static corsika::default_prng_type& rng = corsika::RNGManager<>::getInstance().getRandomStream("conex"); @@ -47,5 +48,6 @@ namespace conex { std::uniform_real_distribution<double> dist; return dist(rng); } + // GCOV_EXCL_STOP } // namespace conex diff --git a/tests/modules/testQGSJetII.cpp b/tests/modules/testQGSJetII.cpp index e9caaecf8c3341c53351e78c023a96838af2bd76..f39fecc1f04159cb3f405a005bf03d55d3a66f27 100644 --- a/tests/modules/testQGSJetII.cpp +++ b/tests/modules/testQGSJetII.cpp @@ -99,6 +99,9 @@ TEST_CASE("QgsjetII", "[processes]") { CHECK_FALSE(model.isValid(Code::Electron, Code::Proton, 1_TeV)); CHECK_FALSE(model.isValid(Code::Proton, Code::Electron, 1_TeV)); CHECK_FALSE(model.isValid(Code::Proton, Code::Proton, 1_GeV)); + + CHECK(model.isValid(Code::Proton, Code::Helium, 1_TeV)); + CHECK_FALSE(model.isValid(Code::Proton, Code::Helium, 1_GeV)); } } diff --git a/tests/modules/testTracking.cpp b/tests/modules/testTracking.cpp index 4906bc58c486d8dbb43a3d790f1426ccfadd862a..02de4348240275c04000b69b10aa5eff08131558 100644 --- a/tests/modules/testTracking.cpp +++ b/tests/modules/testTracking.cpp @@ -394,3 +394,10 @@ TEMPLATE_TEST_CASE("TrackingPlane", "plane", tracking_leapfrog_curved::Tracking, CHECK(hit.getExit() == 1_s * std::numeric_limits<double>::infinity()); } } + +TEST_CASE("Intersections") { + Intersections test; + CHECK(test.getEntry() == + std::numeric_limits<TimeType::value_type>::infinity() * second); + CHECK(test.getExit() == std::numeric_limits<TimeType::value_type>::infinity() * second); +}