IAP GITLAB
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
corsika
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Air Shower Physics
corsika
Commits
55fdcff2
Commit
55fdcff2
authored
3 years ago
by
ralfulrich
Committed by
Ralf Ulrich
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
improve coverage
parent
dad9c9ec
No related branches found
No related tags found
1 merge request
!343
Resolve "CorsikaFenvFallback"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/framework/testCombinedStack.cpp
+11
-1
11 additions, 1 deletion
tests/framework/testCombinedStack.cpp
with
11 additions
and
1 deletion
tests/framework/testCombinedStack.cpp
+
11
−
1
View file @
55fdcff2
...
@@ -218,6 +218,17 @@ TEST_CASE("Combined Stack", "[stack]") {
...
@@ -218,6 +218,17 @@ TEST_CASE("Combined Stack", "[stack]") {
CHECK
(
s
.
getEntries
()
==
0
);
CHECK
(
s
.
getEntries
()
==
0
);
CHECK
(
s
.
isEmpty
());
CHECK
(
s
.
isEmpty
());
}
}
SECTION
(
"exceptions"
)
{
StackTest
s
;
auto
p1
=
s
.
addParticle
(
std
::
tuple
{
9.9
});
auto
p2
=
s
.
addParticle
(
std
::
tuple
{
9.9
});
++
p2
;
CHECK_THROWS
(
s
.
copy
(
p1
,
p2
));
CHECK_THROWS
(
s
.
swap
(
p1
,
p2
));
CHECK
(
s
.
getSize
()
==
2
);
}
}
}
////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////
...
@@ -288,7 +299,6 @@ using StackTest2 = CombinedStack<typename StackTest::stack_implementation_type,
...
@@ -288,7 +299,6 @@ using StackTest2 = CombinedStack<typename StackTest::stack_implementation_type,
TEST_CASE
(
"Combined Stack - multi"
,
"[stack]"
)
{
TEST_CASE
(
"Combined Stack - multi"
,
"[stack]"
)
{
logging
::
set_level
(
logging
::
level
::
info
);
logging
::
set_level
(
logging
::
level
::
info
);
corsika_logger
->
set_pattern
(
"[%n:%^%-8l%$] custom pattern: %v"
);
SECTION
(
"create secondaries"
)
{
SECTION
(
"create secondaries"
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment