Branch Coverage

blib/lib/WWW/Link/Tester/Adaptive.pm
Criterion Covered Total %
branch 64 98 65.3


line true false branch
68 22 6 if ($mode == WWW::Link::Tester::Adaptive::Cookie::MODE_SIMPLE())
72 6 0 if ($mode == WWW::Link::Tester::Adaptive::Cookie::MODE_COMPLEX())
103 26 3 if ($apply) { }
104 0 26 if $$self{'verbose'}
107 0 3 if $$self{'verbose'}
126 39 18 if defined $cookie and ref($cookie) =~ /WWW::Link::Tester::Adaptive::Cookie/
129 0 18 if defined $cookie
234 0 28 if (defined $$self{'simple'})
239 0 28 if (defined $$self{'complex'})
244 0 28 unless defined $$self{'settings'}
248 0 28 if $settings & 2 and $settings & 4
250 0 28 if $settings & 2
251 0 28 if $settings & 4
261 12 70 unless @resp
262 0 70 unless (defined $resp[2])
266 0 70 unless $resp[2] eq 'WWW::Link::Tester::Adaptive'
271 28 17 unless defined $_
272 15 2 if $_ > $inconsistency
275 0 28 if $verbose
280 19 9 if ($inconsistency <= 0)
281 1 18 if $count % 11 == 10
284 0 18 if $verbose
289 4 5 if ($inconsistency < 3)
290 2 2 if ($responses[0][3] == MODE_COMPLEX()) { }
291 0 2 if $verbose
295 0 2 if $verbose
301 5 0 if ($inconsistency >= 3)
304 2 3 if ($count % 5 == 4)
305 0 2 if $verbose
309 0 3 if $verbose
339 9 20 unless defined $old_response
340 0 20 unless (defined $old_mode)
351 0 20 unless defined $mode
353 0 20 unless defined $$self{'test_consistency'}
355 0 20 if $verbose
357 0 20 if $verbose
366 1 19 if ($mode == MODE_COMPLEX() and $response->code == 498)
372 7 12 if ($mode == MODE_SIMPLE() and $old_mode == MODE_COMPLEX() or $mode == MODE_COMPLEX() and $old_mode == MODE_SIMPLE())
373 0 7 if $verbose
375 3 4 $mode == MODE_SIMPLE() ? :
378 2 5 unless defined $$self{'test_consistency'}[$scode]
380 0 7 if ($self->responses_are_equivalent($response, $old_response)) { }
381 0 0 if ($$self{'test_consistency'}[$scode] > 3) { }
402 9 6 unless defined $inconsistency
403 3 3 if $inconsistency < 3
404 0 6 if $inconsistency < 0
414 0 0 unless ref $link
416 0 0 if $time & TIME_SHORT()
429 0 28 unless $code =~ /^[1-9][0-9][0-9]$/