Branch Coverage

blib/lib/VoiceXML/Client/Document.pm
Criterion Covered Total %
branch 37 66 56.0


line true false branch
111 3 12 if (ref $item eq 'ARRAY') { }
131 2 2 if (defined $setTo and exists $$self{'formindices'}{$setTo})
144 2 0 if ($$self{'nextform'})
148 2 0 if (exists $$self{'formindices'}{$nextFormName} and exists $$self{'forms'}[$$self{'formindices'}{$nextFormName}])
160 0 2 if ($$self{'variables'}{$$self{'forms'}[$i]{'guard'}}) { }
162 0 0 if $VoiceXML::Client::Debug > 1
165 0 2 if $VoiceXML::Client::Debug
181 0 3 unless defined $idx
191 0 5 unless defined $id
197 5 19 if ($$itm{'type'} eq 'VoiceXML::Client::Item::Form' and $$itm{'id'} eq $id)
200 0 5 if $VoiceXML::Client::Debug > 1
226 2 12 if $$self{'nextform'}
239 5 4 if ($cType ne 'VoiceXML::Client::Item::Form') { }
249 4 0 if (exists $$self{'formindices'}{$formName})
253 3 1 unless ($$self{'variables'}{$$self{'forms'}[$formIdx]{'guard'}})
275 0 0 if (defined $setTo and $setTo =~ /^\d+$/ and $setTo < scalar @{$$self{'items'};})
311 0 37 if (defined $val) { }
327 9 8 if (defined $val)
331 0 9 if $VoiceXML::Client::Debug > 1
334 2 15 unless exists $$self{'variables'}{$varName}
344 4 0 if (exists $$self{'variables'}{$varName})
362 1 0 if (scalar @{$$self{'itempositionstack'};})
375 1 0 if (scalar @{$$self{'itempositionstack'};})
389 0 3 unless ($itemToExec)
403 9 2 if $retVal != $VoiceXML::Client::Flow::Directive{'JUMP'}
406 1 10 if ($retVal == $VoiceXML::Client::Flow::Directive{'SUBRETURN'})
409 1 0 if (defined $latestPosInStack)
426 0 3 if ($retVal == $VoiceXML::Client::Flow::Directive{'CONTINUE'})
434 3 0 if $retVal == $VoiceXML::Client::Flow::Directive{'ABORT'} or $retVal == $VoiceXML::Client::Flow::Directive{'DONE'}
437 0 0 if ($retVal == $VoiceXML::Client::Flow::Directive{'NEXTDOC'})
441 0 0 unless $nextDoc
443 0 0 if $VoiceXML::Client::Debug
455 0 0 if (defined $setTo)