Branch Coverage

blib/lib/Class/Declare/Attributes.pm
Criterion Covered Total %
branch 15 30 50.0


line true false branch
56 121 0 if $_[0] =~ /attribute may clash .+? reserved word: (\w+)/o || $_[0] =~ /^Declaration of (\w+) .+? package $pkg .+? reserved word/o and $__ATTR__{$1}
85 0 127 unless exists $__ATTR__{$attr}
89 0 127 if (defined(my $previous = $__PKGS__{$pkg}{$ref}))
95 0 0 if $previous eq $attr
112 0 127 if @unknown
141 0 102 defined $_[0] ? :
152 0 393 unless ($strict)
153 0 0 if (my $wrapped = delete $__DONE__{$pkg})
174 0 8266 if ref $sym
177 5063 3203 unless my $ref = *{$sym;}{'CODE'}
184 3076 127 unless @attr
190 127 0 if ($strict)
222 0 52 unless my $class = shift()
225 52 0 if ($class =~ /;/o) { }
240 0 52 if $@