Branch Coverage

blib/lib/Mite/Role.pm.mite.pm
Criterion Covered Total %
branch 46 166 27.7


line true false branch
65 0 12 ref $_[0] ? :
71 0 12 @_ == 1 ? :
0 12 $meta->{'HAS_BUILDARGS'} ? :
76 0 12 unless exists $args->{'name'}
82 12 0 if (defined $args->{'name'})
84 0 12 unless ref \$args->{'name'} eq "SCALAR"
89 0 12 unless do {
101 0 12 if (exists $args->{'shim_name'})
107 0 0 if (defined $args->{'shim_name'})
109 0 0 unless ref \$args->{'shim_name'} eq "SCALAR"
115 0 0 unless do {
128 10 2 if (exists $args->{'source'})
130 0 10 unless &blessed($args->{'source'}) and $args->{'source'}->isa("Mite::Source")
136 10 2 if ref $self->{'source'}
143 0 12 exists $args->{'imported_functions'} ? :
145 0 12 unless do {
148 12 0 if (ref $value eq "HASH")
151 0 0 unless do {
154 0 0 if (defined $v)
155 0 0 unless ref \$v eq "SCALAR"
167 0 0 if (defined $k)
168 0 0 unless ref \$k eq "SCALAR"
174 0 0 unless do {
190 0 12 exists $args->{'imported_keywords'} ? :
192 0 12 unless do {
195 12 0 if (ref $value eq "HASH")
198 0 0 unless do {
201 0 0 if (defined $v)
202 0 0 unless ref \$v eq "SCALAR"
214 0 0 if (defined $k)
215 0 0 unless ref \$k eq "SCALAR"
221 0 0 unless do {
234 0 12 exists $args->{'arg'} ? :
241 2 10 exists $args->{'attributes'} ? :
244 0 12 unless do {
247 12 0 if (ref $value eq "HASH")
252 0 0 unless do {
254 0 0 if &Scalar::Util::blessed($i)
272 2 10 exists $args->{'roles'} ? :
274 0 12 unless do {
277 12 0 if (ref $value eq "ARRAY")
282 0 0 unless do {
284 0 0 if &Scalar::Util::blessed($i)
302 0 12 exists $args->{'role_args'} ? :
304 0 12 unless do {
307 12 0 if (ref $value eq "HASH")
310 0 0 unless do {
313 0 0 unless ref $v eq "HASH"
320 0 0 unless do {
323 0 0 if (defined $k)
324 0 0 unless ref \$k eq "SCALAR"
346 0 12 exists $args->{'method_signatures'} ? :
348 0 12 unless do {
351 12 0 if (ref $value eq "HASH")
356 0 0 unless do {
358 0 0 if &Scalar::Util::blessed($v)
370 0 0 if (defined $k)
371 0 0 unless ref \$k eq "SCALAR"
377 0 0 unless do {
393 2 10 exists $args->{'required_methods'} ? :
395 0 12 unless do {
398 12 0 if (ref $value eq "ARRAY")
407 1 0 if (defined $i)
408 0 1 unless ref \$i eq "SCALAR"
414 0 1 unless do {
426 0 12 unless $meta->{'BUILD'}
12 0 if not $no_build and @{[] unless $meta->{'BUILD'};}
433 0 12 if @unknown
496 0 0 unless do {
499 0 0 if (ref $_[1] eq "HASH")
502 0 0 unless do {
505 0 0 unless ref $v eq "HASH"
512 0 0 unless do {
515 0 0 if (defined $k)
516 0 0 unless ref \$k eq "SCALAR"
533 0 8 @_ > 1 ? :
541 0 0 unless do {
544 0 0 if (ref $_[1] eq "ARRAY")
549 0 0 unless do {
551 0 0 if &Scalar::Util::blessed($i)
564 0 59 @_ > 1 ? :
588 0 0 if exists $DOES{$role}
589 0 0 if $role eq "Mite::Role"