Branch Coverage

blib/lib/Mite/Class.pm.mite.pm
Criterion Covered Total %
branch 68 234 29.0


line true false branch
65 0 150 ref $_[0] ? :
71 0 150 @_ == 1 ? :
0 150 $meta->{'HAS_BUILDARGS'} ? :
76 0 150 unless exists $args->{'name'}
82 150 0 if (defined $args->{'name'})
84 0 150 unless ref \$args->{'name'} eq "SCALAR"
89 0 150 unless do {
101 0 150 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 146 4 if (exists $args->{'source'})
130 0 146 unless &blessed($args->{'source'}) and $args->{'source'}->isa("Mite::Source")
136 146 4 if ref $self->{'source'}
143 0 150 exists $args->{'imported_functions'} ? :
145 0 150 unless do {
148 150 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 150 exists $args->{'imported_keywords'} ? :
192 0 150 unless do {
195 150 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 150 exists $args->{'arg'} ? :
241 0 150 exists $args->{'extends'} ? :
244 0 150 unless do {
247 150 0 if (ref $value eq "ARRAY")
256 0 0 if (defined $i)
257 0 0 unless ref \$i eq "SCALAR"
264 0 0 unless do {
285 0 150 exists $args->{'superclass_args'} ? :
287 0 150 unless do {
290 150 0 if (ref $value eq "HASH")
293 0 0 unless do {
296 0 0 unless ref $v eq "HASH"
303 0 0 unless do {
306 0 0 if (defined $k)
307 0 0 unless ref \$k eq "SCALAR"
326 0 150 if (exists $args->{'parents'})
329 0 0 unless do {
334 0 0 unless do {
336 0 0 if &Scalar::Util::blessed($i)
354 0 150 exists $args->{'attributes'} ? :
357 0 150 unless do {
360 150 0 if (ref $value eq "HASH")
365 0 0 unless do {
367 0 0 if &Scalar::Util::blessed($i)
385 0 150 exists $args->{'roles'} ? :
387 0 150 unless do {
390 150 0 if (ref $value eq "ARRAY")
395 0 0 unless do {
397 0 0 if &Scalar::Util::blessed($i)
415 0 150 exists $args->{'role_args'} ? :
417 0 150 unless do {
420 150 0 if (ref $value eq "HASH")
423 0 0 unless do {
426 0 0 unless ref $v eq "HASH"
433 0 0 unless do {
436 0 0 if (defined $k)
437 0 0 unless ref \$k eq "SCALAR"
459 0 150 exists $args->{'method_signatures'} ? :
461 0 150 unless do {
464 150 0 if (ref $value eq "HASH")
469 0 0 unless do {
471 0 0 if &Scalar::Util::blessed($v)
483 0 0 if (defined $k)
484 0 0 unless ref \$k eq "SCALAR"
490 0 0 unless do {
502 0 150 unless $meta->{'BUILD'}
150 0 if not $no_build and @{[] unless $meta->{'BUILD'};}
509 0 150 if @unknown
539 39 0 if exists $_[0]{'extends'}
540 0 39 unless do {
543 39 0 if (ref $_[1] eq "ARRAY")
552 45 0 if (defined $i)
553 0 45 unless ref \$i eq "SCALAR"
560 0 45 unless do {
576 39 765 @_ > 1 ? :
599 0 189 unless @_ == 1
606 0 112 unless @_ == 1
609 0 112 exists $_[0]{'parents'} ? :
611 0 112 unless do {
614 112 0 if (ref $default_value eq "ARRAY")
619 0 24 unless do {
621 24 0 if &Scalar::Util::blessed($i)
642 0 0 unless do {
645 0 0 if (ref $_[1] eq "HASH")
648 0 0 unless do {
651 0 0 unless ref $v eq "HASH"
658 0 0 unless do {
661 0 0 if (defined $k)
662 0 0 unless ref \$k eq "SCALAR"
679 0 28 @_ > 1 ? :
687 0 0 unless do {
690 0 0 if (ref $_[1] eq "ARRAY")
695 0 0 unless do {
697 0 0 if &Scalar::Util::blessed($i)
710 0 260 @_ > 1 ? :
718 0 23 unless do {
721 23 0 if (ref $_[1] eq "HASH")
724 0 25 unless do {
727 25 0 unless ref $v eq "HASH"
734 0 25 unless do {
737 25 0 if (defined $k)
738 0 25 unless ref \$k eq "SCALAR"
755 23 33 @_ > 1 ? :
783 0 0 if exists $DOES{$role}
784 0 0 if $role eq "Mite::Class"