-
Notifications
You must be signed in to change notification settings - Fork 118
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
Initial work on S7 support for covr #580
Conversation
This seems to be mostly working, except for the dynamic getter and setter, the lines are showing as uncovered even though they should have been run. Additionally it doesn't currently handle S7 methods defined on generics outside of the package being covered, or S7 methods for S3 generics. @hadley I haven't been keeping up with the S7 changes in the past few years, so it is possible I have missed some features. Would love comments or a PR extending the test code to ensure we have handled all known cases. I have only a limited amount of time to devote to this, but wanted to get it started at least. |
Awesome, thanks so much for making a start on this! |
This reverts commit 8058180.
Now that @t-kalinowski has got the checks passing, I'd suggest we merge this and then iterate as we discover bits of S7 that this doesn't cover. This PR is already a big improvement 😄 |
I have a WIP draft for counting calls to external methods registered with |
Give the `cov$functions` columns more informative names, for interactive development. E.g.: > cov$functions [1] "Range@properties$length$getter" [2] "Range@properties$length$setter" [3] "Range@properties$length$setter" [4] "Range@constructor" [5] "Range@validator" [6] "Range@validator" [7] "Range@validator" [8] "Range@validator" [9] "Range@validator" [10] "Range@validator" [11] "method(inside, TestS7::Range)"
A few minor style things, but otherwise the improvements look good to me, thanks for pushing this forward! |
Co-authored-by: Jim Hester <[email protected]>
Thanks! I'll merge this once tests finish running. |
Fixes #578