Condition Coverage

blib/lib/Novel/Robot/Browser.pm
Criterion Covered Total %
condition 24 72 33.3


and 3 conditions

line !l l&&!r l&&r condition
73 1 0 0 $o{'stop_sub'} and $o{'stop_sub'}->($info, $data_list, $i, %o)
74 1 0 0 $o{'min_page_num'} and $o{'min_page_num'} > 1
83 0 0 0 $o{'min_page_num'} and $i < $o{'min_page_num'}
84 0 0 0 $o{'max_page_num'} and $i > $o{'max_page_num'}
93 0 0 0 $o{'stop_sub'} and $o{'stop_sub'}->($info, $data_list, $i, %o)
105 0 1 0 $#$data_list >= 0 && exists $$data_list[-1]{'id'}
139 6 2 4 $min and $id < $min
140 6 2 0 $max and $id > $max
208 0 0 4 $res->{'headers'}{'content-encoding'} and $res->{'headers'}{'content-encoding'} eq "gzip"
223 0 0 0 -f $cookie and $cookie =~ /\.sqlite$/
0 0 0 -f $cookie and $cookie =~ /\.txt$/

or 2 conditions

line l !l condition
37 0 4 $opt{'retry'} ||= 5
38 2 2 $opt{'max_process_num'} ||= 5
40 0 4 $opt{'use_chrome'} ||= 0
47 0 4 $headers ||= {}
66 1 0 $o{'info_sub'}->(\$html) || {}
69 1 0 $o{'item_list'} || $o{'item_list_sub'}->(\$html) || []

or 3 conditions

line l !l&&r !l&&!r condition
39 0 4 0 $opt{'browser'} ||= _init_browser($opt{'browser_headers'})
73 0 0 1 $o{'stop_sub'} and $o{'stop_sub'}->($info, $data_list, $i, %o) or defined $o{'item_list'}
105 1 0 0 scalar @$data_list || $i
113 0 3 0 $r->{'id'} //= ++$item_id
150 0 0 0 $$r[-1]{'id'} // $item_num
169 4 0 0 $c || $DEFAULT_URL_CONTENT
213 4 0 0 $html || $content
214 4 0 0 $html || $content
216 4 0 0 $r || $DEFAULT_URL_CONTENT