Skip to content
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

[BUG] Throw exception via method causes missing coverage #1652

Open
manuel-rw opened this issue Apr 25, 2024 · 0 comments
Open

[BUG] Throw exception via method causes missing coverage #1652

manuel-rw opened this issue Apr 25, 2024 · 0 comments
Labels
untriaged To be investigated

Comments

@manuel-rw
Copy link

manuel-rw commented Apr 25, 2024

Describe the bug
After throwing an exception via a method the method ending } is not being marked as covered.

To Reproduce

    public static void EnsureNull(int? value)
    {
        if (!value.HasValue)
        {
            return;
        }
        
        CustomException.Throw(value.Value);
    }

meggima/coverlet-reproductions#5

Expected behavior
All four lines are fully covered.

Actual behavior
Last line is marked as not covered:

325590667-31c186ce-a057-4543-9252-67266e61d699

Configuration (please complete the following information):
Please provide more information on your .NET configuration:
* Which coverlet package and version was used? coverlet.msbuild 3.1.2 (also tried coverlet.msbuild 6.0.)
* Which version of .NET is the code running on? .net 6
* What OS and version, and what distro if applicable? Windows 10, 22H2
* What is the architecture (x64, x86, ARM, ARM64)? x64
* Do you know whether it is specific to that configuration? not specific

Additional context
Add any other context about the problem here.

❗ Please also read Known Issues

@github-actions github-actions bot added the untriaged To be investigated label Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
untriaged To be investigated
Projects
None yet
Development

No branches or pull requests

1 participant