Branch Coverage

blib/lib/XML/Validator/Schema/ModelNode.pm
Criterion Covered Total %
branch 21 42 50.0


line true false branch
28 0 1 unless $name eq 'sequence' or $name eq 'choice' or $name eq 'all' or $name eq 'union'
37 5 0 unless defined $min
38 0 5 unless $min =~ /^\d+$/
43 5 0 unless defined $max
44 0 5 unless $max =~ /^\d+$/ or $max eq 'unbounded'
48 1 4 if ($name eq 'all')
49 0 1 unless $$self{'min'} eq '1' or $$self{'min'} eq '0'
51 0 1 unless $$self{'max'} eq '1'
87 0 4 if $@
103 10 1 if ($d->isa('XML::Validator::Schema::ElementNode')) { }
1 0 elsif ($d->isa('XML::Validator::Schema::ModelNode')) { }
106 0 10 length $qual ? :
109 0 10 $$d{'min'} eq '0' ? :
110 0 10 length $running_qual ? :
141 36 0 if $min eq '1' and $max eq '1'
142 0 0 if $min eq '1' and $max eq 'unbounded'
143 0 0 if $min eq '0' and $max eq '1'
144 0 0 if $min eq '0' and $max eq 'unbounded'
145 0 0 if $max eq 'unbounded'
160 4 6 if (not $names =~ /$$self{'final_re'}/)
177 3 4 if (not $names =~ /$$self{'running_re'}/)