Branch Coverage

lib/XML/Schema/Base.pm
Criterion Covered Total %
branch 51 108 47.2


line true false branch
61 514 333 UNIVERSAL::isa($_[0], 'HASH') ? :
104 55 62 if @$mand
107 0 115 unless $self->_optional($option, $config)
133 713 1116 ref $self ? :
135 1236 593 if (@_) { }
137 0 1236 ref $_[0] ? :
179 1 3 if ($factory->isa('exception', $error)) { }
1 2 elsif (defined $info) { }
220 1 98 if @_ and ref $self
222 98 0 if ref $self
252 332 1268 ref $names[0] eq 'HASH' ? :
254 0 1600 if ($XML::Schema::Base::DEBUG)
271 1343 7375 if $examined{$base}
277 1016 10671 if $$options{'skip'}{$name}
280 7502 3169 if ($type eq '@') { }
3169 0 elsif ($type eq '%') { }
282 0 7502 if $XML::Schema::Base::DEBUG
285 332 7170 if ($$options{'first'} and @$arg)
286 0 332 if $XML::Schema::Base::DEBUG
292 1435 1734 if (@$arg) { }
294 742 2427 unless $$args{$name}
295 0 3169 if $XML::Schema::Base::DEBUG
297 0 3169 if ($$options{'first'} and %{$$args{$name};})
298 0 0 if $XML::Schema::Base::DEBUG
310 0 7118 $examined{$_} ? :
312 0 7375 if $XML::Schema::Base::DEBUG and @$isa
335 7 22 unless @$args and defined $$args[0]
355 21 608 unless defined $$config{$name}
377 4 726 if ref $names eq 'ARRAY'
381 4 2339 ref $val eq 'CODE' ? :
346 2343 defined $$config{$key} ? :
448 0 2 if (exists $$self{'_DEBUG'}) { }
457 2 0 unless $level
461 0 0 if ($level > 1)
464 0 0 if ($level > 2) { }
468 0 0 if ($level > 3) { }
483 0 0 unless defined $arg
508 0 0 $level ? :
511 0 0 unless defined $item
512 0 0 if $level > $XML::Schema::Base::INSPECT_LEVEL
513 0 0 unless length $item
514 0 0 unless ref $item
516 0 0 if (UNIVERSAL::isa($item, 'HASH')) { }
0 0 elsif (UNIVERSAL::isa($item, 'ARRAY')) { }
0 0 elsif (UNIVERSAL::isa($item, 'SCALAR')) { }
517 0 0 if (%$item) { }
529 0 0 if (@$item) { }
563 0 0 if length $text > $length
577 0 0 unless defined $value
585 0 0 if (UNIVERSAL::isa($ref, 'HASH')) { }
0 0 elsif (UNIVERSAL::isa($ref, 'LIST')) { }
602 0 0 unless defined $val
612 0 0 unless defined $val
613 0 0 if ref $val