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 setter only property instrumentation #495

Merged

Conversation

ViktorHofer
Copy link
Contributor

Properties can have a setter without a getter which causes the current type instrumentation code to crash. Fixing this by using the SetMethod if GetMethod is null.

cc @MarcoRossignoli @tonerdo

Copy link
Collaborator

@MarcoRossignoli MarcoRossignoli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@MarcoRossignoli MarcoRossignoli merged commit e3d1a6c into coverlet-coverage:master Jul 23, 2019
@ViktorHofer ViktorHofer deleted the CoverletPropFix branch July 23, 2019 06:44
@MarcoRossignoli
Copy link
Collaborator

We should add a test to cover this, I'll open a new issue

@MarcoRossignoli MarcoRossignoli mentioned this pull request Jul 23, 2019
daveMueller added a commit to daveMueller/coverlet that referenced this pull request Aug 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants