Branch Coverage

blib/lib/Novel/Robot/Browser.pm
Criterion Covered Total %
branch 9 84 10.7


line true false branch
70 0 0 unless ($o{'stop_sub'} and $o{'stop_sub'}->($info, $data_list, $i, %o) or defined $o{'item_list'})
71 0 0 if $o{'min_page_num'} and $o{'min_page_num'} > 1
72 0 0 exists $o{'page_list_sub'} ? :
77 0 0 exists $o{'next_page_sub'} ? :
0 0 $page_list ? :
78 0 0 unless $u
79 0 0 if $o{'min_page_num'} and $i < $o{'min_page_num'}
80 0 0 if $o{'max_page_num'} and $i > $o{'max_page_num'}
83 0 0 ref $u eq 'HASH' ? :
86 0 0 unless $fs
89 0 0 if $o{'stop_sub'} and $o{'stop_sub'}->($info, $data_list, $i, %o)
94 0 0 if ($o{'reverse_item_list'})
97 0 0 if ($max_id)
101 0 0 $data_list->$#* >= 0 && exists $data_list->[-1]{'id'} ? :
103 0 0 if ($o{'item_sub'})
105 0 0 if $o{'progress'}
107 0 0 if $o{'progress'}
113 0 0 unless $self->is_item_in_range($r->{'id'}, $o{'min_item_num'}, $o{'max_item_num'})
114 0 0 if (exists $o{'back_index'})
115 0 0 if $i + $o{'back_index'} > $data_list->$#*
118 0 0 if ($r->{'url'}) { }
129 0 0 if ($r->{'next_url'} ne $next_url) { }
133 0 0 unless exists $temp_r->{'next_url'}
140 0 0 if $o{'progress'}
143 0 0 if $o{'progress'}
145 0 0 if $o{'progress'}
151 0 6 unless $id
152 0 6 if $min and $id < $min
153 0 6 if $max and $id > $max
160 0 0 unless $max
165 0 0 if $id < $max
173 0 2 unless $url
178 2 0 if $c
188 0 0 unless ref $form eq "HASH"
203 0 2 if ($form) { }
0 2 elsif ($self->{'use_chrome'}) { }
217 0 2 unless $res->{'success'}
221 2 0 if ($res->{'headers'}{'content-encoding'} and $res->{'headers'}{'content-encoding'} eq "gzip")
236 0 0 if (-f $cookie and $cookie =~ /\.sqlite$/) { }
0 0 elsif (-f $cookie and $cookie =~ /\.txt$/) { }
242 0 0 if $_->[0]
249 0 0 if defined $_->[6]