Closed computablee closed 11 months ago
All modified lines are covered by tests :white_check_mark:
Comparison is base (
943349c
) 95.45% compared to head (5056704
) 99.17%. Report is 2 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Which issue are you addressing?
This PR further addresses #45 and closes #48.
How have you addressed the issue?
A new field has been added to
ForkedRegion
which allows the codebase to easily check if a method is called from within a worksharing region. This is used in several places to throw exceptions. Out-of-date documentation related to exceptions has been updated, and several old exceptions have been removed. Currently, I leave only the constructors for exceptions with messages, as I want this to be the norm for DotMP going forward (not throwing an exception without a message).How have you tested your patch?
I have added a large array of new tests ending in
*_should_except
which tests a bunch of different cases that DotMP should throw exceptions and ensures that it does. These tests have the side effect of drastically increasing code coverage, pushing us closer to 100%. I don't see 100% being viable due to bugs in coverlet, but I want better tests anyway, not a number on a badge.