Condition Coverage

lib/Test/Nginx/Util.pm
Criterion Covered Total %
condition 3 195 1.5


and 3 conditions

line !l l&&!r l&&r condition
168 0 0 0 ref $expected and ref $expected eq 'Regexp'
626 0 0 0 not $CheckAccumErrLog and $ErrLogFilePos > 0
666 0 0 0 $_ ne $ServRoot and $_ ne $LogDir
1307 0 0 0 $CheckLeak || $Benchmark and defined $block->no_check_leak
1327 0 0 0 defined $skip_slave and defined $BuildSlaveName
1341 0 0 0 not defined $NginxVersion and $op =~ /^
1367 0 0 0 $opx eq 'or' and eval "$NginxVersion $opa $vera" || eval "$NginxVersion $opb $verb"
0 0 0 eval "$NginxVersion $opa $vera" and eval "$NginxVersion $opb $verb"
0 0 0 $opx eq 'and' and (eval "$NginxVersion $opa $vera" and eval "$NginxVersion $opb $verb")
1389 0 0 0 defined $slave1 and $slave1 eq 'all'
0 0 0 defined $slave1 and $slave1 eq $BuildSlaveName
0 0 0 defined $slave2 and $slave2 eq $BuildSlaveName
0 0 0 defined $slave3 and $slave3 eq $BuildSlaveName
1419 0 0 0 not defined $NginxVersion and $op =~ /^
1453 0 0 0 not $NoNginxManager || $should_skip and $should_restart
1782 0 0 0 $ENV{'TEST_NGINX_IGNORE_MISSING_DIRECTIVES'} and my $directive = &check_if_missing_directives()
1819 0 0 0 $CheckLeak || $Benchmark and defined $block->tcp_listen
1833 0 0 0 not $CheckLeak || $Benchmark and defined $block->tcp_listen
1911 0 0 0 not $tcp_socket and $err
2025 0 0 0 $ref and $ref eq 'CODE'
2079 0 0 0 $CheckLeak || $Benchmark and defined $block->udp_listen
2092 0 0 0 not $CheckLeak || $Benchmark and defined $block->udp_listen
2191 0 0 0 $ref and $ref eq 'CODE'
2241 0 0 0 $should_skip and defined $tests_to_skip
2315 0 0 0 $Profiling || $UseValgrind || $UseStap and not $UseHup
2351 0 0 0 not unlink($PidFile) and -f $PidFile
2360 0 0 0 not unlink($PidFile) and -f $PidFile
2377 0 5 0 defined $PidFile and -f $PidFile
2392 0 0 0 defined $ServRoot and -d $ServRoot
0 0 0 defined $ServRoot and -d $ServRoot and $ServRoot =~ m[/t/servroot_\d+]
2404 0 0 0 -f $cmd and -x $cmd
2415 0 0 0 -f $abs and -x $abs

or 3 conditions

line l !l&&r !l&&!r condition
288 0 0 0 not $v =~ /^[A-Za-z_]/ or $v =~ /\n/
321 0 0 0 $CheckLeak or $Benchmark
815 0 0 0 $UseValgrind or $UseStap
868 0 0 0 $CheckLeak or $Benchmark
1000 0 0 0 not defined $out or $? != 0
1287 0 0 0 not defined $PrevConfig or $config ne $PrevConfig
1292 0 0 0 $should_reconfig or $ForceRestartOnTest
1307 0 0 0 $CheckLeak || $Benchmark
1341 0 0 0 not defined $NginxVersion and $op =~ /^
1367 0 0 0 eval "$NginxVersion $opa $vera" || eval "$NginxVersion $opb $verb"
0 0 0 not defined $NginxVersion or $opx eq 'or' and eval "$NginxVersion $opa $vera" || eval "$NginxVersion $opb $verb"
0 0 0 not defined $NginxVersion or $opx eq 'or' and eval "$NginxVersion $opa $vera" || eval "$NginxVersion $opb $verb" or $opx eq 'and' and (eval "$NginxVersion $opa $vera" and eval "$NginxVersion $opb $verb")
1389 0 0 0 defined $slave1 and $slave1 eq 'all' or defined $slave1 and $slave1 eq $BuildSlaveName
0 0 0 defined $slave1 and $slave1 eq 'all' or defined $slave1 and $slave1 eq $BuildSlaveName or defined $slave2 and $slave2 eq $BuildSlaveName
0 0 0 defined $slave1 and $slave1 eq 'all' or defined $slave1 and $slave1 eq $BuildSlaveName or defined $slave2 and $slave2 eq $BuildSlaveName or defined $slave3 and $slave3 eq $BuildSlaveName
1419 0 0 0 not defined $NginxVersion and $op =~ /^
1453 0 0 0 $NoNginxManager || $should_skip
1474 0 0 0 not defined $pid or $pid eq ''
1649 0 0 0 defined $block->stap_out or defined $block->stap_out_like
0 0 0 defined $block->stap_out or defined $block->stap_out_like or defined $block->stap_out_unlike
1691 0 0 0 $Profiling or $UseValgrind
0 0 0 $Profiling or $UseValgrind or $UseStap
1819 0 0 0 $CheckLeak || $Benchmark
1833 0 0 0 $CheckLeak || $Benchmark
1838 0 0 0 defined $reply or defined $block->tcp_shutdown
1844 0 0 0 defined $block->tcp_query or defined $req_len
1952 0 0 0 $shutdown == 0 or $shutdown == 2
2001 0 0 0 not $req_len or length $buf >= $req_len
2079 0 0 0 $CheckLeak || $Benchmark
2092 0 0 0 $CheckLeak || $Benchmark
2315 0 0 0 $Profiling || $UseValgrind || $UseStap
2375 0 0 5 $UseStap or $UseValgrind
0 5 0 $UseStap or $UseValgrind or not $ENV{'TEST_NGINX_NO_CLEAN'}