Branch Coverage

blib/lib/Attribute/Signature.pm
Criterion Covered Total %
branch 53 76 69.7


line true false branch
27 0 28 unless (ref $data)
36 1 27 if ($$attributes{'method'})
37 0 1 if $main::AS_DEBUG
45 3 114 if ($$attributes{'method'})
49 20 97 if ($count != scalar @$data)
50 1 19 if ($$attributes{'method'}) { }
58 0 97 if $main::AS_DEBUG
59 0 97 if $main::AS_DEBUG
62 0 201 if $main::AS_DEBUG
63 97 104 unless $$data[$i]
65 72 32 if (lc $$data[$i] eq $$data[$i]) { }
0 32 elsif (blessed($_[$i]) and $_[$i]->isa($$data[$i])) { }
8 24 elsif (not blessed($_[$i]) and ref $_[$i] eq $$data[$i]) { }
68 72 0 if ('Attribute::Signature'->can($type))
69 49 23 if ('Attribute::Signature'->$type($_[$i]))
79 57 47 if ($ok) { }
87 2 95 if ($$attributes{'method'})
89 0 0 if defined $main::AS_DEBUG and $main::AS_DEBUG
91 47 50 if ($m != $count) { }
109 0 28 unless (ref $data)
118 0 28 if ($$attributes{'method'})
119 0 0 if $main::AS_DEBUG
130 0 29 if ($count != scalar @$data)
131 0 0 if ($$attributes{'method'}) { }
139 0 29 if $main::AS_DEBUG
140 0 29 if $main::AS_DEBUG
142 0 60 if $main::AS_DEBUG
143 29 31 unless $$data[$i]
144 23 8 if (lc $$data[$i] eq $$data[$i]) { }
1 7 elsif ($$data[$i] eq 'REF' and ref $return[$i]) { }
0 7 elsif (blessed($return[$i]) and $return[$i]->isa($$data[$i])) { }
3 4 elsif (not blessed($return[$i]) and ref $return[$i] eq $$data[$i]) { }
147 23 0 if ('Attribute::Signature'->can($type))
148 19 4 if ('Attribute::Signature'->$type($return[$i]))
165 0 29 if ($$attributes{'method'})
167 0 29 if $main::AS_DEBUG
169 8 21 if ($m != $count) { }
185 1 1 if (wantarray) { }