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

Fix switch pattern #1006

Merged

Conversation

MarcoRossignoli
Copy link
Collaborator

fixes #936

cc: @daveMueller I did some test and skipping branches and breakpoint expression seems to work

image

image

@MarcoRossignoli MarcoRossignoli added the tenet-coverage Issue related to possible incorrect coverage label Nov 28, 2020
@daveMueller
Copy link
Collaborator

Yes that's a good solution. Thanks again to @jakubch1 for the hint. The only thing that doesn't really fit is the hits count, line 36 is actually only hit once.

image

But it's certainly more lightweight than what I did. I mixed this skip and the other algorithm and therefore had to do some changes in the instrumenter ..., definitely more heavy.

@MarcoRossignoli
Copy link
Collaborator Author

MarcoRossignoli commented Dec 6, 2020

@daveMueller with the idea of "skip nested lines" fixes accounting issue
image

@MarcoRossignoli MarcoRossignoli requested review from tonerdo and petli and removed request for tonerdo December 6, 2020 14:11
@MarcoRossignoli MarcoRossignoli marked this pull request as ready for review December 6, 2020 14:11
@MarcoRossignoli
Copy link
Collaborator Author

@daveMueller please feel free to review this.

@daveMueller
Copy link
Collaborator

@MarcoRossignoli Sure I will just need approx. 2 days to find some spare time. I'm really interested in the key differences to my implementation and why I couldn't make I run without touching the Intrumenter. Also I think this might solve another issue I have in mind.

@MarcoRossignoli MarcoRossignoli changed the title Fix switch pattern [WIP]Fix switch pattern Dec 7, 2020
@MarcoRossignoli MarcoRossignoli changed the title [WIP]Fix switch pattern Fix switch pattern Dec 12, 2020
@MarcoRossignoli
Copy link
Collaborator Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

0xced added a commit to serilog-contrib/serilog-formatting-log4net that referenced this pull request Jan 20, 2021
Keeping 100% coverage now that [switch expressions coverage][1] has been fixed in coverlet.

[1]: coverlet-coverage/coverlet#1006
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tenet-coverage Issue related to possible incorrect coverage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Switch expression 0% coverage
3 participants