Branch Coverage

blib/lib/Novel/Robot/Browser.pm
Criterion Covered Total %
branch 28 78 35.9


line true false branch
67 0 1 if $o{'verbose'}
73 1 0 unless ($o{'stop_sub'} and $o{'stop_sub'}->($info, $data_list, $i, %o) or defined $o{'item_list'})
74 0 1 if $o{'min_page_num'} and $o{'min_page_num'} > 1
75 0 1 exists $o{'page_list_sub'} ? :
81 0 1 exists $o{'next_page_sub'} ? :
0 1 $page_list ? :
82 1 0 unless $u
83 0 0 if $o{'min_page_num'} and $i < $o{'min_page_num'}
84 0 0 if $o{'max_page_num'} and $i > $o{'max_page_num'}
86 0 0 ref $u eq 'HASH' ? :
90 0 0 unless $fs
93 0 0 if $o{'stop_sub'} and $o{'stop_sub'}->($info, $data_list, $i, %o)
98 0 1 if ($o{'reverse_item_list'})
101 0 0 if ($max_id)
105 0 1 $#$data_list >= 0 && exists $$data_list[-1]{'id'} ? :
107 1 0 if ($o{'item_sub'})
109 0 1 if $o{'term_progress_bar'}
111 0 1 if $o{'term_progress_bar'}
115 2 1 unless $self->is_item_in_range($r->{'id'}, $o{'min_item_num'}, $o{'max_item_num'})
118 1 0 if ($r->{'url'}) { }
128 0 1 if $o{'term_progress_bar'}
130 0 1 if $o{'term_progress_bar'}
132 0 1 if $o{'term_progress_bar'}
138 0 12 unless $id
139 4 8 if $min and $id < $min
140 0 8 if $max and $id > $max
147 0 0 unless $max
152 0 0 if $id < $max
160 0 4 unless $url
165 4 0 if $c
175 0 0 unless ref $form eq "HASH"
190 0 4 if ($form) { }
0 4 elsif ($self->{'use_chrome'}) { }
204 0 4 unless $res->{'success'}
208 4 0 if ($res->{'headers'}{'content-encoding'} and $res->{'headers'}{'content-encoding'} eq "gzip")
223 0 0 if (-f $cookie and $cookie =~ /\.sqlite$/) { }
0 0 elsif (-f $cookie and $cookie =~ /\.txt$/) { }
229 0 0 if $$_[0]
237 0 0 if defined $$_[6]