Branch Coverage

blib/lib/Mouse/Util.pm
Criterion Covered Total %
branch 43 58 74.1


line true false branch
59 283 1 if ($xs)
73 0 0 if $@ and $ENV{'MOUSE_XS'}
76 1 283 unless ($xs)
87 284 0 if ($] >= 5.01) { }
103 0 0 if exists $stored{$p}
123 0 0 unless (defined $type)
124 0 0 exists $Class::C3::MRO{$classname} ? :
126 0 0 if ($type eq 'c3') { }
193 1 177 unless defined $role_name
202 49 5 if (&Scalar::Util::blessed($thing) || is_class_loaded($thing) and $thing->can('does'))
216 28 12 $options{'trait'} ? :
221 21 10 $options{'trait'} ? :
229 9 22 $loaded_class->can('register_implementation') ? :
255 0 31 unless my(@classes) = @_
262 21 31 if ($e) { }
284 5 1344 unless (is_valid_class_name($class))
285 4 1 defined $class ? :
289 1297 47 if is_class_loaded($class)
304 4 1288 if $e
311 7 213 &Scalar::Util::blessed($_[0]) ? :
322 4 281 if (ref $role) { }
331 35 250 if ($i + 1 < $max and ref $_[$i + 1] eq 'HASH') { }
336 1 284 unless is_a_metarole($role)
340 167 52 if (scalar @roles == 1) { }
342 21 146 defined $params ? :
352 9 10 if @_ == 1
356 8 2 if @items == 2
391 0 979 if (exists $args{'longmess'} and not $args{'longmess'}) { }
405 0 0 defined $maxdepth ? :