Condition Coverage

blib/lib/Test/Varnish.pm
Criterion Covered Total %
condition 5 32 15.6


and 3 conditions

line !l l&&!r l&&r condition
41 1 3 1 defined $main_header and $main_header =~ /^ \s* \d+ \s+ \d+ \s* $/mx
180 0 0 0 defined $cookie_header && $cookie_header ne ''

or 2 conditions

line l !l condition
29 0 0 $res->header($name) || ''
52 0 1 $opt ||= {}
120 0 0 $$args{'method'} || 'GET'
121 0 0 $$args{'headers'} || {}

or 3 conditions

line l !l&&r !l&&!r condition
51 0 1 0 ref $class || $class
68 0 0 0 $message ||= "Request to url '${url}' failed"
72 0 0 0 $message ||= "Request to url '${url}' should be cached by Varnish"
84 0 0 0 $message ||= "Request to url '${url}' failed"
88 0 0 0 $message ||= "Request to $url should not be cached by Varnish"
96 0 0 0 not $args or ref $args ne 'HASH'