Branch Coverage

lib/XML/Schema/Type/Simple.pm
Criterion Covered Total %
branch 44 58 75.8


line true false branch
72 13 200 if ($class eq 'XML::Schema::Type::Simple' and $base = $$config{'base'})
73 12 1 if ($class = $self->builtin($base)) { }
74 0 12 if $XML::Schema::Type::Simple::DEBUG
86 6 194 if @$mand
89 0 198 unless $self->_optional($option, $config)
103 116 260 ref $name ? :
104 2 374 unless $self->constrain($name, $value)
113 0 196 unless $self->init_scheduler($config)
133 2 191 if ($class eq 'XML::Schema::Type::Simple') { }
159 109 4 UNIVERSAL::can($class, 'new') ? :
180 116 271 if (ref $name) { }
188 114 273 if (ref $facet eq 'CODE') { }
2 271 elsif (UNIVERSAL::isa($facet, 'XML::Schema::Facet')) { }
189 0 114 if $XML::Schema::Type::Simple::DEBUG
191 0 114 if $name
195 2 0 unless $name
196 0 2 if $XML::Schema::Type::Simple::DEBUG
200 2 269 if $XML::Schema::Type::Simple::DEBUG
201 162 109 unless ref $value
211 0 271 unless $facet->install($flist, $fhash)
245 0 428 ref $text ? :
251 0 428 if $XML::Schema::Type::Simple::DEBUG
277 0 431 if $XML::Schema::Type::Simple::DEBUG
280 336 683 if (ref $facet eq 'CODE') { }
281 55 281 unless &$facet($infoset, $self)
285 49 634 unless $facet->valid($infoset, $self)
310 1 3 @_ ? :
333 1 0 unless $facet->accept($visitor)
367 0 0 if $base