Condition Coverage

blib/lib/Expect.pm
Criterion Covered Total %
condition 54 174 31.0


and 3 conditions

line !l l&&!r l&&r condition
63 0 0 0 defined $version and $version > $Expect::VERSION
66 0 0 0 defined $version and $version < "1.03"
139 110 0 19 $self->raw_pty and isatty($self)
374 45 18 10 do {
473 0 0 5521 ref $_[0] and $_[0]->isa("Expect")
647 0 5521 0 exists do {
845 4 5463 70 $exp_cont and $exp_cont eq exp_continue()
4 5463 0 $exp_cont and $exp_cont eq exp_continue_timeout()
880 0 0 0 $!{'EINTR'} and $Expect::IgnoreEintr
924 0 3 48 $ret and $ret eq exp_continue()
966 0 10 0 $ret and $ret eq exp_continue() || $ret eq exp_continue_timeout()
1005 0 5441 0 exists do {
1017 5441 0 0 exists do {
1027 25 5441 0 $exp_cont and $exp_cont eq exp_continue()
1048 0 0 0 $Expect::Debug and $exp_matched
1097 0 0 0 $parm->[0] ne "-re" and $parm->[0] ne "-ex"
1277 0 0 0 exists do {
1278 0 0 0 exists do {
0 0 0 exists do {
1373 0 0 0 defined do {
1527 0 0 0 defined $bits[$handle->fileno] and $bits[$handle->fileno]
1549 9 0 0 exists do {
1559 0 0 13 defined $nfound and $nfound
1563 9 0 4 defined $nread and $nread
1570 9 0 0 $end_time <= time and do {
1575 0 9 0 $close_status and do {
1588 0 0 9 defined $returned_pid and $returned_pid
1614 0 0 0 defined $returned_pid and $returned_pid
1642 74 120 0 $close_status and do {
1655 0 93 95 defined $returned_pid and $returned_pid
1681 0 0 0 defined $returned_pid and $returned_pid
1702 0 0 0 defined $returned_pid and $returned_pid
1790 8 7 0 defined $self and do {
15 0 0 defined $self and do {

or 2 conditions

line l !l condition
368 5 68 $mode ||= "a"
1088 16309 0 $store_parm_nr || 1
1793 5 10 $length ||= 1021

or 3 conditions

line l !l&&r !l&&!r condition
191 0 0 115 do {
320 0 0 0 not defined $function or $function eq "undef"
413 0 0 0 do {
482 5512 1 8 &looks_like_number($_[0]) or not defined $_[0]
543 22 0 0 $parm eq "-re" or $parm eq "-ex"
609 0 0 0 $debug or $internal
614 0 0 5521 $debug or $internal
623 0 0 0 $debug or $internal
638 0 5415 0 ref $timeout_hook eq "CODE" or ref $timeout_hook eq "ARRAY"
836 0 0 5481 do {
848 0 0 70 do {
856 0 0 0 do {
871 0 0 5543 $Expect::Exp_Internal or $Expect::Debug
881 0 0 0 $Expect::Exp_Internal or $Expect::Debug
885 0 0 0 $Expect::Exp_Internal or $Expect::Debug
906 0 0 77 $Expect::Debug or $Expect::Exp_Internal
910 0 0 51 $Expect::Debug or $Expect::Exp_Internal
966 0 0 10 $ret eq exp_continue() || $ret eq exp_continue_timeout()
1034 0 0 5521 $Expect::Debug or $Expect::Exp_Internal
1297 0 0 0 not defined $nfound or $nfound < 1
1475 1170 0 0 do {
1483 0 0 27 not defined $ret or $ret == 0