Branch Coverage

blib/lib/Devel/Declare.pm
Criterion Covered Total %
branch 55 68 80.8


line true false branch
30 9 9 if (@_ == 1) { }
52 6 24 if (ref $info eq 'ARRAY') { }
4 20 elsif (ref $info eq 'CODE') { }
20 0 elsif (ref $info eq 'HASH') { }
84 11 6 if ($name)
85 9 2 unless $name =~ /::/
88 9 8 if ($XX_h)
91 17 0 if (defined wantarray) { }
107 0 79 unless $temp_name
112 0 79 unless $temp_name
113 0 79 unless defined $name
118 60 19 if ($saved)
122 0 79 unless $temp_name
127 0 8 if (wantarray)
142 0 1 unless defined $pack and ref $to_setup eq 'HASH'
158 6 1 if (@_)
159 1 5 if (ref $_[0] eq 'HASH') { }
161 0 1 if (wantarray)
178 6 0 if $shift_hashref
182 5 2 if (defined $proto) { }
1 2 elsif (defined $name and length $name) { }
214 14 3 if ($flags & 1)
217 11 3 if (substr($linestr, $offset, 2) eq '::')
221 11 3 if (my $len = toke_scan_word($offset, $flags & 9))
226 12 5 if ($flags & 2)
229 9 3 if (substr($linestr, $offset, 1) eq '(')
233 5 4 $found_name ? :
245 17 0 if (substr($linestr, $offset, 1) eq '{') { }
248 17 0 if (defined $ret and length $ret)
262 14 3 if ($flags & 1)
265 11 3 if (toke_scan_word($offset, $flags & 9))
278 34 92 if (ref $handlers eq 'CODE') { }
92 0 elsif (ref $handlers eq 'HASH') { }
282 76 16 if ($handlers->{$type})