Condition Coverage

lib/Test/Nginx/Util.pm
Criterion Covered Total %
condition 3 203 1.4


and 3 conditions

line !l l&&!r l&&r condition
184 0 0 0 ref $expected and ref $expected eq 'Regexp'
671 0 0 0 not $CheckAccumErrLog and $ErrLogFilePos > 0
873 0 0 0 $UseStap and defined $block->stap
1417 0 0 0 $CheckLeak || $Benchmark and defined $block->no_check_leak
1437 0 0 0 defined $skip_slave and defined $BuildSlaveName
1451 0 0 0 not defined $NginxVersion and $op =~ /^
1477 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")
1499 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
1562 0 0 0 not defined $NginxVersion and $op =~ /^
1596 0 0 0 not $NoNginxManager || $should_skip and $should_restart
1942 0 0 0 $ENV{'TEST_NGINX_IGNORE_MISSING_DIRECTIVES'} and my $directive = &check_if_missing_directives()
1987 0 0 0 $CheckLeak || $Benchmark and defined $block->tcp_listen
2001 0 0 0 not $CheckLeak || $Benchmark and defined $block->tcp_listen
2079 0 0 0 not $tcp_socket and $err
2193 0 0 0 $ref and $ref eq 'CODE'
2247 0 0 0 $CheckLeak || $Benchmark and defined $block->udp_listen
2260 0 0 0 not $CheckLeak || $Benchmark and defined $block->udp_listen
2359 0 0 0 $ref and $ref eq 'CODE'
2409 0 0 0 $should_skip and defined $tests_to_skip
2483 0 0 0 $Profiling || $UseValgrind || $UseStap and not $UseHup
2519 0 0 0 not unlink($PidFile) and -f $PidFile
2528 0 0 0 not unlink($PidFile) and -f $PidFile
2545 0 5 0 defined $PidFile and -f $PidFile
2562 0 0 0 defined $ServRoot and -d $ServRoot
0 0 0 defined $ServRoot and -d $ServRoot and $ServRoot =~ m[/t/servroot_\d+]
2574 0 0 0 -f $cmd and -x $cmd
2585 0 0 0 -f $abs and -x $abs
2635 0 0 0 not ref $block->request and $block->request =~ m[HTTP/1\.0]s

or 2 conditions

line l !l condition
1089 0 0 $out //= ''

or 3 conditions

line l !l&&r !l&&!r condition
308 0 0 0 not $v =~ /^[A-Za-z_]/ or $v =~ /\n/
341 0 0 0 $CheckLeak or $Benchmark
929 0 0 0 $CheckLeak or $Benchmark
1088 0 0 0 not defined $out or $? != 0
1392 0 0 0 not defined $PrevConfig or $config ne $PrevConfig
1397 0 0 0 $should_reconfig or $ForceRestartOnTest
1413 0 0 0 defined $block->reload_fails or defined $block->http2
1417 0 0 0 $CheckLeak || $Benchmark
1451 0 0 0 not defined $NginxVersion and $op =~ /^
1477 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")
1499 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
1536 0 0 0 not defined $OpenSSLVersion or eval "$OpenSSLVersion $op $ver"
1562 0 0 0 not defined $NginxVersion and $op =~ /^
1596 0 0 0 $NoNginxManager || $should_skip
1617 0 0 0 not defined $pid or $pid eq ''
1806 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
1848 0 0 0 $Profiling or $UseValgrind
0 0 0 $Profiling or $UseValgrind or $UseStap
1987 0 0 0 $CheckLeak || $Benchmark
2001 0 0 0 $CheckLeak || $Benchmark
2006 0 0 0 defined $reply or defined $block->tcp_shutdown
2012 0 0 0 defined $block->tcp_query or defined $req_len
2120 0 0 0 $shutdown == 0 or $shutdown == 2
2169 0 0 0 not $req_len or length $buf >= $req_len
2247 0 0 0 $CheckLeak || $Benchmark
2260 0 0 0 $CheckLeak || $Benchmark
2483 0 0 0 $Profiling || $UseValgrind || $UseStap
2543 0 0 5 $UseStap or $UseValgrind
0 5 0 $UseStap or $UseValgrind or not $ENV{'TEST_NGINX_NO_CLEAN'}