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
320 1657 12 344 /(?:PERLIO|TSTENV)\s*=\s*([-\w:.]+)/ and !@{$new[-1]{'results'};} || $new[-1]{'results'}[0]{'summary'} ne 'M'
448 0 582 30 $rpt{$cfgarg}{'summary'}{$debug}{$tstenv} and $rpt{$cfgarg}{'summary'}{$debug}{$tstenv} =~ /[XM]/
550 0 0 51 $self->{'ddir'} and -d $self->{'ddir'}
576 34 14 54 $cfgargs{$_} == @{$rpt->{'cfglist'};} && !/^-[DU]use/
608 500 12 12 $tstenv eq "minitest" and not exists $status->{$tstenv}
616 402 0 110 $self->{'defaultenv'} and $showenv eq "stdio"
623 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
640 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
872 0 0 0 $send_log eq "on_fail" and $rpt_fail
880 0 0 0 $send_out eq "on_fail" and $rpt_fail
939 61 0 0 $self->{'showcfg'} and $self->{'cfg'}
0 0 0 $self->{'showcfg'} and $self->{'cfg'} and $self->has_test_failures
961 2 59 0 not $self->{'user_note'} and $self->{'un_file'}
1006 59 3 0 @lpatches and $lpatches[0] eq "uncommitted-changes"
1042 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'}
1313 0 53 10 $self->{'_locale'} and @{$self->{'_locale'};}

or 2 conditions

line l !l condition
296 214 15 $_ || ''
327 0 344 $rpt{$cfgarg}{'summary'}{$debug}{$tstenv} ||= "?"
581 53 13 $rpt->{'common_args'} ||= "none"
598 23 43 $rpt->{'dbughow'} || '-DDEBUGGING'
618 362 150 $status->{$tstenv} ||= "-"
667 18 150 $self->{'locale'} || ''
834 0 0 $si->ncpu || '?'
835 0 0 $self->{'user_note'} || ''
858 0 0 $ENV{'LOGNAME'} || getlogin || getpwuid $< || '?'
989 0 53 $Config{'gccversion'} || $Config{'ccversion'} || ''
990 0 53 $Config{'cc'} || 'unknown cc'
991 0 53 $Config{'cc'} || 'cc'
1068 50 0 $self->{'_rpt'}{'cinfo'} || $self->{'_ccinfo'} || 'cc'
1081 61 0 grepccmsg($cc, $self->get_outfile, $self->{'v'}) || []
1105 50 0 $self->{'_rpt'}{'cinfo'} || $self->{'_ccinfo'} || 'cc'
1118 60 0 grepnonfatal($cc, $self->get_outfile, $self->{'v'}) || []
1147 63 0 $si->ncpu || ''
1311 24 39 $self->{'_rpt'}{'dbughow'} || '-DDEBUGGING'

or 3 conditions

line l !l&&r !l&&!r condition
251 220 66 0 $rpt{'started'} ||= $time
268 66 0 0 $pl || $patch
269 41 25 0 $descr || $pl
315 132 17 0 $rpt{'cinfo'} ||= $cinfo
320 208 136 12 !@{$new[-1]{'results'};} || $new[-1]{'results'}[0]{'summary'} ne 'M'
376 0 24 15 not $rpt{$cfgarg}{'summary'}{$debug}{$tstenv} or $rpt{$cfgarg}{'summary'}{$debug}{$tstenv} ne "F"
387 0 0 0 $_info =~ /^ (\w+) \s+at\ test\s+ (\d+) \s* $/x || $_info =~ /^ (\w+)--(\S.*\S) \s* $/x
425 0 18 0 $tstenv ||= $mini ? "minitest" : "stdio"
443 606 0 1177 /FAILED/ or /DIED/
606 12 1165 /FAILED/ or /DIED/ or /dubious$/
12 6 1159 /FAILED/ or /DIED/ or /dubious$/ or /\?\?\?\?\?\?$/
558 3 7 56 $self->{'defaultenv'} ||= $self->{'is56x'}
635 57 76 0 $order{$failed} ||= $ord++
654 3 33 0 $order2{$passed} ||= $ord2++
737 229 0 0 shift() || time
797 1 0 0 shift() || catfile($self->{'ddir'}, $self->{'rptfile'})
858 0 0 0 $self->{'hostname'} || $si->host
872 0 0 0 $send_log eq "always" or $send_log eq "on_fail" and $rpt_fail
880 0 0 0 $send_out eq "always" or $send_out eq "on_fail" and $rpt_fail
1152 1 62 0 $self->{'hostname'} || $si->host