Condition Coverage

blib/lib/Test/Smoke/Reporter.pm
Criterion Covered Total %
condition 88 153 57.5


and 3 conditions

line !l l&&!r l&&r condition
319 1657 12 344 /(?:PERLIO|TSTENV)\s*=\s*([-\w:.]+)/ and !@{$new[-1]{'results'};} || $new[-1]{'results'}[0]{'summary'} ne 'M'
447 0 582 30 $rpt{$cfgarg}{'summary'}{$debug}{$tstenv} and $rpt{$cfgarg}{'summary'}{$debug}{$tstenv} =~ /[XM]/
549 0 0 51 $self->{'ddir'} and -d $self->{'ddir'}
575 34 14 54 $cfgargs{$_} == @{$rpt->{'cfglist'};} && !/^-[DU]use/
607 500 12 12 $tstenv eq "minitest" and not exists $status->{$tstenv}
615 402 0 110 $self->{'defaultenv'} and $showenv eq "stdio"
622 76 0 119 exists $failures{$failed} and @{$failures{$failed};}
76 57 62 exists $failures{$failed} and @{$failures{$failed};} and $failures{$failed}[-1]{'cfg'} eq $cfg
639 33 0 33 exists $todo_passed{$passed} and @{$todo_passed{$passed};}
33 3 30 exists $todo_passed{$passed} and @{$todo_passed{$passed};} and $todo_passed{$passed}[-1]{'cfg'} eq $cfg
871 0 0 0 $send_log eq "on_fail" and $rpt_fail
879 0 0 0 $send_out eq "on_fail" and $rpt_fail
938 61 0 0 $self->{'showcfg'} and $self->{'cfg'}
0 0 0 $self->{'showcfg'} and $self->{'cfg'} and $self->has_test_failures
960 2 59 0 not $self->{'user_note'} and $self->{'un_file'}
1005 59 3 0 @lpatches and $lpatches[0] eq "uncommitted-changes"
1041 60 0 2 $self->{'skip_tests'} and -f $self->{'skip_tests'}
60 0 2 $self->{'skip_tests'} and -f $self->{'skip_tests'} and open my $fh, "<", $self->{'skip_tests'}
1312 0 53 10 $self->{'_locale'} and @{$self->{'_locale'};}

or 2 conditions

line l !l condition
295 214 15 $_ || ''
326 0 344 $rpt{$cfgarg}{'summary'}{$debug}{$tstenv} ||= "?"
580 53 13 $rpt->{'common_args'} ||= "none"
597 23 43 $rpt->{'dbughow'} || '-DDEBUGGING'
617 362 150 $status->{$tstenv} ||= "-"
666 18 150 $self->{'locale'} || ''
833 0 0 $si->ncpu || '?'
834 0 0 $self->{'user_note'} || ''
857 0 0 $ENV{'LOGNAME'} || getlogin || getpwuid $< || '?'
988 0 53 $Config{'gccversion'} || $Config{'ccversion'} || ''
989 0 53 $Config{'cc'} || 'unknown cc'
990 0 53 $Config{'cc'} || 'cc'
1067 50 0 $self->{'_rpt'}{'cinfo'} || $self->{'_ccinfo'} || 'cc'
1080 61 0 grepccmsg($cc, $self->get_outfile, $self->{'v'}) || []
1104 50 0 $self->{'_rpt'}{'cinfo'} || $self->{'_ccinfo'} || 'cc'
1117 60 0 grepnonfatal($cc, $self->get_outfile, $self->{'v'}) || []
1146 63 0 $si->ncpu || ''
1310 24 39 $self->{'_rpt'}{'dbughow'} || '-DDEBUGGING'

or 3 conditions

line l !l&&r !l&&!r condition
250 220 66 0 $rpt{'started'} ||= $time
267 66 0 0 $pl || $patch
268 41 25 0 $descr || $pl
314 132 17 0 $rpt{'cinfo'} ||= $cinfo
319 208 136 12 !@{$new[-1]{'results'};} || $new[-1]{'results'}[0]{'summary'} ne 'M'
375 0 24 15 not $rpt{$cfgarg}{'summary'}{$debug}{$tstenv} or $rpt{$cfgarg}{'summary'}{$debug}{$tstenv} ne "F"
386 0 0 0 $_info =~ /^ (\w+) \s+at\ test\s+ (\d+) \s* $/x || $_info =~ /^ (\w+)--(\S.*\S) \s* $/x
424 0 18 0 $tstenv ||= $mini ? "minitest" : "stdio"
442 606 0 1177 /FAILED/ or /DIED/
606 12 1165 /FAILED/ or /DIED/ or /dubious$/
12 6 1159 /FAILED/ or /DIED/ or /dubious$/ or /\?\?\?\?\?\?$/
557 3 7 56 $self->{'defaultenv'} ||= $self->{'is56x'}
634 57 76 0 $order{$failed} ||= $ord++
653 3 33 0 $order2{$passed} ||= $ord2++
736 229 0 0 shift() || time
796 1 0 0 shift() || catfile($self->{'ddir'}, $self->{'rptfile'})
857 0 0 0 $self->{'hostname'} || $si->host
871 0 0 0 $send_log eq "always" or $send_log eq "on_fail" and $rpt_fail
879 0 0 0 $send_out eq "always" or $send_out eq "on_fail" and $rpt_fail
1151 1 62 0 $self->{'hostname'} || $si->host