blib/lib/List/Util/Find.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 13 | 16 | 81.2 |
line | true | false | branch |
---|---|---|---|
21 | 0 | 6 | unless defined $needle |
25 | 4 | 41 | unless defined $_ |
26 | 31 | 10 | unless $needle == $_ |
27 | 7 | 3 | if ($needle == 0) { } |
30 | 1 | 6 | if /\A\s*[+-]?(?:0|[1-9][0-9]*)\s*\z/s |
31 | 0 | 6 | if /\A\s*[+-]? (?: (?:0|[1-9][0-9]*)(\.[0-9]+)? | (\.[0-9]+) ) ([eE][+-]?[0-9]+)?\s*\z/sx and $1 or $2 or $3 |
45 | 0 | 5 | unless defined $needle |
48 | 3 | 29 | if defined $_ and $needle eq $_ |