-
-
Notifications
You must be signed in to change notification settings - Fork 374
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
Incorrect Code Coverage Report? #1044
Comments
Thank you for your report. Please provide a minimal, self-contained, reproducing test case that shows the problem you are reporting. Without such a minimal, self-contained, reproducing test case I will not be able to investigate this issue. |
I did, see above. |
The example you provided is neither minimal nor self-contained. |
No feedback, closing. |
I'm currently using Laravel v11.21.0. In it I have a service which interacts with an API using Laravel's Http Facade. Here's the code:
For whatever reason this API will respond with 200 status codes sometimes even when invalid data is sent... Anyway, I have this unit test for covering that case:
I've stepped through this code and confirmed 100% that the line within the
result !== 'success'
if statement is executed. Yet here's a code coverage report for the ApiService:I also tested this with PCOV v1.0.11-5 and got the same results...
The text was updated successfully, but these errors were encountered: