Condition Coverage

blib/lib/Speech/Synthesis.pm
Criterion Covered Total %
condition 5 61 8.2


and 3 conditions

line !l l&&!r l&&r condition
270 0 0 1 exists $params{'engine'} and grep {$_ eq $params{'engine'};} 'Speech::Synthesis'->InstalledEngines
319 0 0 3 exists $params{'engine'} and grep {$_ eq $params{'engine'};} 'Speech::Synthesis'->InstalledEngines
328 0 0 0 $params{'engine'} eq 'MSAgent' and not $lang
466 0 0 0 exists $params{'engine'} and $params{'engine'} eq 'MSAgent'
493 0 0 0 exists $params{'language'} and exists $params{'avatar'}
634 0 0 0 exists $$self{'_agent'} and $$self{'_loadedchar'} ne $$self{'_avatar'}

or 2 conditions

line l !l condition
274 0 0 'Win32::SAPI4::VoiceText'->new || die(q[Can't start SAPI4: ] . 'Win32::OLE'->LastError)
281 0 0 'Win32::SAPI5::SpVoice'->new || die(q[Can't start SAPI5: ] . 'Win32::OLE'->LastError)
323 0 0 'Win32::SAPI4::VoiceText'->new || die(q[Can't start SAPI4: ] . 'Win32::OLE'->LastError)
351 0 0 'Win32::SAPI5::SpVoice'->new || die(q[Can't start SAPI5: ] . 'Win32::OLE'->LastError)
467 0 0 'Win32::MSAgent'->new || die(q[Can't start Microsoft Agent])
504 0 0 $params{'host'} || 'localhost'
505 0 0 $params{'port'} || 1314
641 0 0 'Win32::MSAgent'->new || die(q[Can't start MSAgent: ] . 'Win32::OLE'->LastError)
667 0 0 'Win32::SAPI4::DirectSpeechSynthesis'->new || die(q[Can't start SAPI4: ] . 'Win32::OLE'->LastError)
679 0 0 'Win32::SAPI5::SpVoice'->new || die(q[Can't start SAPI5: ] . 'Win32::OLE'->LastError)
705 0 0 'Festival::Client::Async'->new($$self{'_host'}, $$self{'_port'}) || die("No festival server seems to be running: $!")

or 3 conditions

line l !l&&r !l&&!r condition
272 0 0 1 $params{'engine'} eq 'MSAgent' or $params{'engine'} eq 'SAPI4'
281 0 0 0 my $sapi5 ||= 'Win32::SAPI5::SpVoice'->new || die(q[Can't start SAPI5: ] . 'Win32::OLE'->LastError)
321 0 0 3 $params{'engine'} eq 'MSAgent' or $params{'engine'} eq 'SAPI4'
351 0 0 0 my $sapi5 ||= 'Win32::SAPI5::SpVoice'->new || die(q[Can't start SAPI5: ] . 'Win32::OLE'->LastError)
416 0 3 0 'Festival::Client::Async'->new($params{'host'}, $params{'port'}) || warn("No festival server seems to be running: $!")
475 0 0 0 ref $proto || $proto
679 0 0 0 $$self{'_sapi5'} ||= 'Win32::SAPI5::SpVoice'->new || die(q[Can't start SAPI5: ] . 'Win32::OLE'->LastError)