Branch Coverage

blib/lib/AnyEvent/Google/PageRank.pm
Criterion Covered Total %
branch 17 22 77.2


line true false branch
122 1 5 if (%opts)
144 0 7 if ref $cb ne 'CODE'
147 1 6 unless $url =~ m[^https?://]i
154 3 3 if (ref $self eq 'HASH') { }
157 0 3 if defined $$opts{'proxy'} and index($$opts{'proxy'}, ':') != -1
158 0 3 exists $$opts{'agent'} ? :
162 1 2 if ref $$self{'ae_http'} eq 'HASH'
163 1 2 if defined $$self{'timeout'}
164 0 3 if defined $$self{'proxy'}
165 3 0 if defined $$self{'agent'}
171 4 2 if ($$headers{'Status'} =~ /^2/ and $data =~ /Rank_\d+:\d+:(\d+)/) { }