Branch Coverage

blib/lib/Mite/Class.pm.mite.pm
Criterion Covered Total %
branch 68 238 28.5


line true false branch
67 0 142 ref $_[0] ? :
73 0 142 @_ == 1 ? :
0 142 $meta->{'HAS_BUILDARGS'} ? :
78 0 142 unless exists $args->{'name'}
84 142 0 if (defined $args->{'name'})
86 0 142 unless ref \$args->{'name'} eq "SCALAR"
91 0 142 unless do {
103 0 142 if (exists $args->{'shim_name'})
109 0 0 if (defined $args->{'shim_name'})
111 0 0 unless ref \$args->{'shim_name'} eq "SCALAR"
117 0 0 unless do {
130 138 4 if (exists $args->{'source'})
132 0 138 unless &blessed($args->{'source'}) and $args->{'source'}->isa("Mite::Source")
138 138 4 if ref $self->{'source'}
145 0 142 exists $args->{'imported_functions'} ? :
147 0 142 unless do {
150 142 0 if (ref $value eq "HASH")
153 0 0 unless do {
156 0 0 if (defined $v)
157 0 0 unless ref \$v eq "SCALAR"
169 0 0 if (defined $k)
170 0 0 unless ref \$k eq "SCALAR"
176 0 0 unless do {
192 0 142 exists $args->{'imported_keywords'} ? :
194 0 142 unless do {
197 142 0 if (ref $value eq "HASH")
200 0 0 unless do {
203 0 0 if (defined $v)
204 0 0 unless ref \$v eq "SCALAR"
216 0 0 if (defined $k)
217 0 0 unless ref \$k eq "SCALAR"
223 0 0 unless do {
236 0 142 exists $args->{'arg'} ? :
243 0 142 exists $args->{'extends'} ? :
246 0 142 unless do {
249 142 0 if (ref $value eq "ARRAY")
258 0 0 if (defined $i)
259 0 0 unless ref \$i eq "SCALAR"
266 0 0 unless do {
287 0 142 exists $args->{'superclass_args'} ? :
289 0 142 unless do {
292 142 0 if (ref $value eq "HASH")
295 0 0 unless do {
298 0 0 unless ref $v eq "HASH"
305 0 0 unless do {
308 0 0 if (defined $k)
309 0 0 unless ref \$k eq "SCALAR"
328 0 142 if (exists $args->{'parents'})
331 0 0 unless do {
336 0 0 unless do {
338 0 0 if &Scalar::Util::blessed($i)
356 0 142 exists $args->{'attributes'} ? :
359 0 142 unless do {
362 142 0 if (ref $value eq "HASH")
367 0 0 unless do {
369 0 0 if &Scalar::Util::blessed($i)
387 0 142 exists $args->{'roles'} ? :
389 0 142 unless do {
392 142 0 if (ref $value eq "ARRAY")
397 0 0 unless do {
399 0 0 if &Scalar::Util::blessed($i)
417 0 142 exists $args->{'role_args'} ? :
419 0 142 unless do {
422 142 0 if (ref $value eq "HASH")
425 0 0 unless do {
428 0 0 unless ref $v eq "HASH"
435 0 0 unless do {
438 0 0 if (defined $k)
439 0 0 unless ref \$k eq "SCALAR"
461 0 142 exists $args->{'method_signatures'} ? :
463 0 142 unless do {
466 142 0 if (ref $value eq "HASH")
471 0 0 unless do {
473 0 0 if &Scalar::Util::blessed($v)
485 0 0 if (defined $k)
486 0 0 unless ref \$k eq "SCALAR"
492 0 0 unless do {
504 0 142 unless $meta->{'BUILD'}
142 0 if not $no_build and @{[] unless $meta->{'BUILD'};}
511 0 142 if @unknown
541 33 0 if exists $_[0]{'extends'}
542 0 33 unless do {
545 33 0 if (ref $_[1] eq "ARRAY")
554 37 0 if (defined $i)
555 0 37 unless ref \$i eq "SCALAR"
562 0 37 unless do {
578 33 721 @_ > 1 ? :
601 0 175 unless @_ == 1
608 0 106 unless @_ == 1
611 0 106 exists $_[0]{'parents'} ? :
613 0 106 unless do {
616 106 0 if (ref $default_value eq "ARRAY")
621 0 19 unless do {
623 19 0 if &Scalar::Util::blessed($i)
644 0 0 unless do {
647 0 0 if (ref $_[1] eq "HASH")
650 0 0 unless do {
653 0 0 unless ref $v eq "HASH"
660 0 0 unless do {
663 0 0 if (defined $k)
664 0 0 unless ref \$k eq "SCALAR"
681 0 28 @_ > 1 ? :
689 0 0 unless do {
692 0 0 if (ref $_[1] eq "ARRAY")
697 0 0 unless do {
699 0 0 if &Scalar::Util::blessed($i)
712 0 244 @_ > 1 ? :
720 0 23 unless do {
723 23 0 if (ref $_[1] eq "HASH")
726 0 25 unless do {
729 25 0 unless ref $v eq "HASH"
736 0 25 unless do {
739 25 0 if (defined $k)
740 0 25 unless ref \$k eq "SCALAR"
757 23 27 @_ > 1 ? :
785 0 0 if exists $DOES{$role}
786 0 0 if $role eq "Mite::Class"
787 0 0 if ($INC{'Moose/Util.pm'} and my $meta = Moose::Util::find_meta(ref $self || $self))
790 0 0 if $meta->can("does_role") and $meta->does_role($role)