Branch Coverage

blib/lib/MooX/TaggedAttributes.pm
Criterion Covered Total %
branch 26 48 54.1


line true false branch
45 0 0 unless Role::Tiny::does_role("Moo::Role", MooX::CaptainHook::ON_APPLICATION())
57 0 0 if Moo::Role::does($target, "MooX::TaggedAttributes::Propagate")
85 0 11 unless exists $ARGS{$arg}
86 11 0 defined $ARGS{$arg} ? :
89 0 9 if (delete $args{"-install_hook"})
91 0 0 unless %args
94 9 0 unless Moo::Role::does_role($target, "MooX::TaggedAttributes::Role")
97 0 9 unless %args
99 9 0 if (defined $args{"-tags"})
101 2 7 unless "ARRAY" eq ref $args{"-tags"}
105 9 0 if @{$args{"-tags"};}
108 0 9 if (defined $args{"-propagate"} and $args{"-propagate"})
142 6 40 unless "Moo::Role"->is_role($role)
145 40 0 unless (Moo::Role::does_role($target, $role))
147 13 27 if ('Moo::Role'->is_role($target)) { }
159 0 27 if ($^V lt v5.14) { }
162 0 0 if ($pkg->has_symbol('&import')) { }
172 0 0 if $e ne ""
179 27 0 unless defined *{$glob;}{"CODE"}
216 39 10 unless exists $TAGSTORE{$target}
223 11 38 if (my $handler = $opt{"-handler"} // defined $opt{'-class'} && $TAGHANDLER{$opt{'-class'}})
226 9 2 'ARRAY' eq ref $handler ? :
290 0 45 ref $attrs ? :
306 25 20 $is_role ? :