-
-
Notifications
You must be signed in to change notification settings - Fork 376
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
Coverage on not implemented interface #919
Comments
The problem is caused by this workaround
it already returns $node without defining the end of the ignore.
I modified the code and in my case it solved the problem if ($node instanceof Interface_) {
$this->ignoredLines = array_merge(
$this->ignoredLines,
range($node->getStartLine(), $node->getEndLine())
);
return;
} But I don't know if this global change broke something, that's why I didn't create a Pull Request @sebastianbergmann what do you think? |
@sebastianbergmann Could you take a look at it because I don't know whether to give a pull request? |
We're experiencing the same issue with the following (newer) versions:
But with version 9.2.20 everything works as expected. |
Same issue for me, some lines from interfaces reported as uncovered, starting from
For reproducible example see https://github.com/vstelmakh/url-highlight
Additionally, attaching a coverage.xml part here. It shrieked (to 13 lines) just to display an issue. The same issue is with HTML coverage. |
Seems like got fixed. Not reproducible in |
Hi. I'm sorry to dig up this issue, but I'm encountering something similar an I didn't want to create a duplicate of it. The coverage reports a false positive on interfaces when signature of methods are described on multiple lines. You can see the version of CodeCoverage/PHP/PHPUnit I'm using to report this coverage. I'm using XDebug 3.2.0. Thanks a lot |
When I use code coverage in the report I get false-positive information that I partially have un-covered methods from the interface, which is a contract and has no implementation at all in this repository in my case.
The text was updated successfully, but these errors were encountered: