-
Notifications
You must be signed in to change notification settings - Fork 392
Exclude code that follows [DoesNotReturn] from code coverage (per #898) #904
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
MarcoRossignoli
merged 20 commits into
coverlet-coverage:master
from
kevin-montrose:exclude-unreachable-code
Sep 5, 2020
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
e915869
Implementing reachability analysis, which will allow instructions tha…
kevin-montrose 8314d66
Do a read-only pass through modules to find "does not return" methods…
kevin-montrose 575edcb
.Resolve() can still fail, just for non-self-inflicted reasons; handl…
kevin-montrose 8524e72
add test sample
MarcoRossignoli ef9eb95
move Reachability related objects to new file and namespace per https…
kevin-montrose 1ba63a1
Move everything in ReachabilityHelper over to immutable collections (…
kevin-montrose b6692d9
Implements support for tracing throw exception handlers. This is nec…
kevin-montrose 9660b92
Remove debugging code.
kevin-montrose 8d01c06
While this wouldn't produce an error, it is incorrect to consider thi…
kevin-montrose 5eb5bac
don't do control flow analysis in reachability if there are no [DoesN…
kevin-montrose eb6cced
formatting
kevin-montrose dd47112
merge master
kevin-montrose c98b456
Merge branch 'exclude-unreachable-code' of https://github.com/kevin-m…
kevin-montrose d953b56
remove some now dead usings, and fix a comment
kevin-montrose f0f7155
doh, did not notice this example... removing since I've already got t…
kevin-montrose 8e907f2
Put DoesNotReturnAttributes attributes into the appropriate places fo…
kevin-montrose 5a16f1b
document new settings for attributes
kevin-montrose b636ab4
Update src/coverlet.core/Attributes/DoesNotReturnAttribute.cs
kevin-montrose 5aac031
Update src/coverlet.core/Instrumentation/Instrumenter.cs
kevin-montrose 4fc5202
Add a blank line per https://github.com/coverlet-coverage/coverlet/pu…
kevin-montrose File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
using System; | ||
|
||
namespace Coverlet.Core.Attributes | ||
{ | ||
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Method | AttributeTargets.Constructor | AttributeTargets.Class)] | ||
internal class DoesNotReturnAttribute : Attribute { } | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.