Branch Coverage

lib/XML/Schema/Particle/Choice.pm
Criterion Covered Total %
branch 11 38 28.9


line true false branch
45 0 3 if $XML::Schema::Particle::Choice::DEBUG
50 0 3 unless ref $choice eq 'ARRAY'
59 1 5 unless (defined $particle)
69 0 2 unless $self->constrain($config)
86 0 1 if $XML::Schema::Particle::Choice::DEBUG
115 0 1 if $XML::Schema::Particle::Choice::DEBUG
121 0 1 if ($pnow)
123 0 0 if $element = $pnow->element($name)
127 0 0 unless defined $element
135 0 0 unless $pnow->end
142 0 0 if $occurs >= $$self{'max'}
147 0 2 unless $pnow->start
150 1 1 if ($element = $pnow->element($name))
164 0 0 $$self{'occurs'} >= $$self{'min'} ? :
183 0 0 if $XML::Schema::Particle::Choice::DEBUG
188 0 0 if ($pnow)
189 0 0 unless $pnow->end
199 0 0 if $occurs < $min
202 0 0 if $occurs > $max