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

Little fix for hhvm code coverage #243

Closed
wants to merge 35 commits into from

Conversation

imsamurai
Copy link

Hhvm 3.0.1 code coverage actually returns line => invocation count. This patch normalizes to 1.

sebastianbergmann and others added 30 commits February 24, 2014 13:24
* PHP_CodeCoverage_Driver is now an abstract class (was an interface before)
* Move getAllowedLines and getLinesToBeIgnored() from PHP_CodeCoverage to new PHP_CodeCoverage_Parser class
* Move the application of the blacklist/whitelist/"ignored lines" filtering from PHP_CodeCoverage to PHP_CodeCoverage_Driver
* Driver-specific data cleanup is now performed after the blacklist/whitelist/"ignored lines" filtering
@whatthejeff
Copy link
Contributor

Maybe we should change the == 0 checks to > 0 checks so that no cleanup is necessary. Any thoughts on this, @sebastianbergmann?

@GrahamCampbell
Copy link
Contributor

Any news on this? Also, the indentation is a bit dodgie here.

@whatthejeff
Copy link
Contributor

It's a weird situation because Facebook has abandoned their previous code coverage efforts and they are now porting Xdebug. See facebook/hhvm#1589 and facebook/hhvm#2992.

@sebastianbergmann
Copy link
Owner

I recreated the master branch based on the 2.0 branch thus reverting all the changes I made in master since 2.0 was originally branched off. This makes this pull request unusable. I apologize for any inconvenience this may cause.

Please open a new pull request against the 2.0 branch if this is a backwards compatible bugfix or against master if it is not. Thank you!

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.

6 participants