Condition Coverage

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


and 3 conditions

line !l l&&!r l&&r condition
218 0 0 0 ref $expected and ref $expected eq 'Regexp'
684 0 0 0 not $CheckAccumErrLog and $ErrLogFilePos > 0
887 0 0 0 $UseStap and defined $block->stap
1459 0 0 0 $CheckLeak || $Benchmark and defined $block->no_check_leak
1479 0 0 0 defined $skip_slave and defined $BuildSlaveName
1493 0 0 0 not defined $NginxVersion and $op =~ /^
1519 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")
1541 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
1604 0 0 0 not defined $NginxVersion and $op =~ /^
1638 0 0 0 not $NoNginxManager || $should_skip and $should_restart
1984 0 0 0 $ENV{'TEST_NGINX_IGNORE_MISSING_DIRECTIVES'} and my $directive = &check_if_missing_directives()
2029 0 0 0 $CheckLeak || $Benchmark and defined $block->tcp_listen
2043 0 0 0 not $CheckLeak || $Benchmark and defined $block->tcp_listen
2121 0 0 0 not $tcp_socket and $err
2235 0 0 0 $ref and $ref eq 'CODE'
2289 0 0 0 $CheckLeak || $Benchmark and defined $block->udp_listen
2302 0 0 0 not $CheckLeak || $Benchmark and defined $block->udp_listen
2401 0 0 0 $ref and $ref eq 'CODE'
2451 0 0 0 $should_skip and defined $tests_to_skip
2525 0 0 0 $Profiling || $UseValgrind || $UseStap and not $UseHup
2561 0 0 0 not unlink($PidFile) and -f $PidFile
2570 0 0 0 not unlink($PidFile) and -f $PidFile
2587 0 5 0 defined $PidFile and -f $PidFile
2604 0 0 0 defined $ServRoot and -d $ServRoot
0 0 0 defined $ServRoot and -d $ServRoot and $ServRoot =~ m[/t/servroot_\d+]
2616 0 0 0 -f $cmd and -x $cmd
2627 0 0 0 -f $abs and -x $abs
2677 0 0 0 not ref $block->request and $block->request =~ m[HTTP/1\.0]s

or 2 conditions

line l !l condition
180 0 0 $tries //= 1000
181 0 0 $used_ports //= {}
1103 0 0 $out //= ''

or 3 conditions

line l !l&&r !l&&!r condition
321 0 0 0 not $v =~ /^[A-Za-z_]/ or $v =~ /\n/
354 0 0 0 $CheckLeak or $Benchmark
943 0 0 0 $CheckLeak or $Benchmark
1102 0 0 0 not defined $out or $? != 0
1434 0 0 0 not defined $PrevConfig or $config ne $PrevConfig
1439 0 0 0 $should_reconfig or $ForceRestartOnTest
1455 0 0 0 defined $block->reload_fails or defined $block->http2
1459 0 0 0 $CheckLeak || $Benchmark
1493 0 0 0 not defined $NginxVersion and $op =~ /^
1519 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")
1541 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
1578 0 0 0 not defined $OpenSSLVersion or eval "$OpenSSLVersion $op $ver"
1604 0 0 0 not defined $NginxVersion and $op =~ /^
1638 0 0 0 $NoNginxManager || $should_skip
1659 0 0 0 not defined $pid or $pid eq ''
1848 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
1890 0 0 0 $Profiling or $UseValgrind
0 0 0 $Profiling or $UseValgrind or $UseStap
2029 0 0 0 $CheckLeak || $Benchmark
2043 0 0 0 $CheckLeak || $Benchmark
2048 0 0 0 defined $reply or defined $block->tcp_shutdown
2054 0 0 0 defined $block->tcp_query or defined $req_len
2162 0 0 0 $shutdown == 0 or $shutdown == 2
2211 0 0 0 not $req_len or length $buf >= $req_len
2289 0 0 0 $CheckLeak || $Benchmark
2302 0 0 0 $CheckLeak || $Benchmark
2525 0 0 0 $Profiling || $UseValgrind || $UseStap
2585 0 0 5 $UseStap or $UseValgrind
0 5 0 $UseStap or $UseValgrind or not $ENV{'TEST_NGINX_NO_CLEAN'}