Subject: | conditionals where one element is data from a Moose attrib are not evaluated |
I have a small script, which seems to demonstrate a bug in Devel::Cover:
https://gist.github.com/703513
What happens is that the code runs through and the || condition is
properly evaluated and both paths exercised as demonstrated by the
output. However the condition evaluation of Devel::Cover claims the ||
was neither true nor false at any point.
This seems to be caused by "meep" being a moose attribute sub AND the
attempt to use data from the hash it returns.
The || is evaluated properly if the "->{marp}" part is left off, or when
meep is replaced with a fully declared sub-routine.