Branch Coverage

blib/lib/Role/Commons.pm
Criterion Covered Total %
branch 14 30 46.6


line true false branch
29 1 10 /^\-all$/i ? :
30 1 4 if $all
37 3 7 if ($name =~ /^-/ or ref $args[0])
40 3 7 if ($name =~ /^\-(.+)$/i) { }
46 0 5 if keys %options and not keys %roles
56 1 2 unless exists $$options{'into'}
72 0 5 unless my $setup_method = do { no strict 'refs'; ${"${role_pkg}::setup_for_class";} }
76 0 5 ArrayLike->check($details) ? :
0 5 HashLike->check($details) ? :
87 0 0 unless blessed($_[0])
109 0 0 ArrayLike->check($details) ? :
0 0 HashLike->check($details) ? :
115 0 0 unless $setup_method = do { no strict 'refs'; ${"${role_pkg}::setup_for_object";} }
119 0 0 ArrayLike->check($details) ? :
0 0 HashLike->check($details) ? :