Branch Coverage

blib/lib/Novel/Robot/Browser.pm
Criterion Covered Total %
branch 9 80 11.2


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'}
82 0 0 ref $u eq 'HASH' ? :
85 0 0 unless $fs
88 0 0 if $o{'stop_sub'} and $o{'stop_sub'}->($info, $data_list, $i, %o)
93 0 0 if ($o{'reverse_item_list'})
96 0 0 if ($max_id)
100 0 0 $#$data_list >= 0 && exists $$data_list[-1]{'id'} ? :
102 0 0 if ($o{'item_sub'})
104 0 0 if $o{'term_progress_bar'}
106 0 0 if $o{'term_progress_bar'}
112 0 0 unless $self->is_item_in_range($r->{'id'}, $o{'min_item_num'}, $o{'max_item_num'})
114 0 0 if ($r->{'url'}) { }
125 0 0 if ($r->{'next_url'} ne $next_url) { }
129 0 0 unless exists $temp_r->{'next_url'}
136 0 0 if $o{'term_progress_bar'}
139 0 0 if $o{'term_progress_bar'}
141 0 0 if $o{'term_progress_bar'}
147 0 6 unless $id
148 0 6 if $min and $id < $min
149 0 6 if $max and $id > $max
156 0 0 unless $max
161 0 0 if $id < $max
169 0 2 unless $url
174 2 0 if $c
184 0 0 unless ref $form eq "HASH"
199 0 2 if ($form) { }
0 2 elsif ($self->{'use_chrome'}) { }
213 0 2 unless $res->{'success'}
217 2 0 if ($res->{'headers'}{'content-encoding'} and $res->{'headers'}{'content-encoding'} eq "gzip")
232 0 0 if (-f $cookie and $cookie =~ /\.sqlite$/) { }
0 0 elsif (-f $cookie and $cookie =~ /\.txt$/) { }
238 0 0 if $$_[0]
245 0 0 if defined $$_[6]