Branch Coverage

blib/lib/WWW/Google/PageRank.pm
Criterion Covered Total %
branch 20 38 52.6


line true false branch
20 0 0 unless $self->{'ua'} = 'LWP::UserAgent'->new('agent', $par{'agent'} || 'Mozilla/4.0 (compatible; GoogleToolbar 2.0.111-big; Windows XP 5.1)')
22 0 0 if $par{'env_proxy'}
23 0 0 if $par{'proxy'}
24 0 0 if $par{'timeout'}
31 0 0 unless defined $url and $url =~ m[^https?://]i
38 0 0 if ($resp->is_success and $resp->content =~ /Rank_\d+:\d+:(\d+)/) { }
39 0 0 if (wantarray) { }
45 0 0 if (wantarray) { }
82 0 32 if $len > 10
83 2 30 if $len > 9
84 6 26 if $len > 8
85 24 8 if $len > 7
86 24 8 if $len > 6
87 26 6 if $len > 5
88 26 6 if $len > 4
89 26 6 if $len > 3
90 28 4 if $len > 2
91 28 4 if $len > 1
92 32 0 if $len > 0