Open martinvonwittich opened 10 months ago
OK, I didn't get very far even after fixing this - cover
apparently doesn't read the .uncoverable
file: #218
Thanks for looking at this. You're right about the docs. I was working on the whole uncoverable feature and deliberately didn't document it because it was all quite fluid. Then I sort of ran out of time and people were finding it useful anyway so I tidied it up a bit and released it, but never quite got around to finishing it up. The $add
vs $_
bug is an obvious symptom of this.
So far I've been using the invasive specification to mark code as uncoverable, but that causes me to lose my coverage data each time I change something; therefore I wanted to try out the non-invasive way with
cover -add_uncoverable_point
. My first attempt led to this error message (I probably haven't gotten the specification right yet, the docs are unfortunately lacking):As far as I can tell, this is an obvious bug in
lib/Devel/Cover/DB.pm
:https://github.com/pjcj/Devel--Cover/blob/82526a3d8b9886ec579896311e66f4556a3b41cd/lib/Devel/Cover/DB.pm#L620-L622
The
for
loop names the variable$add
, but thesplit
attempts to parse$_
instead of$add
.