RawDataParser->getXrefData not fully covered by tests
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 2.7k
- Forks
- 579
- Avg merge
- 2m
- Merged PRs (30d)
- 1
Description
I had an Exception throw by RawDataParser->getXrefData, I didn't debug this case yet, but I noticed that there's an elseif not covered by tests...
I left a var_dump inside the elseif and I ran phpunit and this var_dump didn't show on terminal (I left a var_dump outside this elseif after just to be sure that would be shown on terminal)
This elseif is not covered (RawDataParser.php:822)
elseif ($startxrefPreg) {
// startxref found
$startxref = $matches[1][0];
}
PS: I will try to debug it later, I am just opening an issue for the record
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with RawDataParser.php around line 822 and inspect the existing PHPUnit coverage for RawDataParser->getXrefData. Reproduce the reported exception and determine the input that reaches the uncovered elseif. Done means the case has a regression test and the relevant PHPUnit tests pass.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend, testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100