Condition Coverage

blib/lib/Sport/Analytics/NHL/Scraper.pm
Criterion Covered Total %
condition 19 33 57.5


and 3 conditions

line !l l&&!r l&&r condition
143 25 2 31 not $content and $r++ < $opts->{'retries'}
228 35 0 0 $opts->{'game_files'} and not $opts->{'game_files'}{$doc}
234 21 0 0 -f $file and not $opts->{'force'}

or 2 conditions

line l !l condition
138 7 20 $opts->{'validate'} ||= sub { 1; }
222 0 7 shift() || {}
232 13 8 $doc->{'extension'} ||= 'html'

or 3 conditions

line l !l&&r !l&&!r condition
137 0 27 0 $opts->{'retries'} ||= $DEFAULT_RETRIES
160 5 0 0 $opts->{'start_season'} || $Sport::Analytics::NHL::Scraper::FIRST_SEASON
161 5 0 0 $opts->{'stop_season'} || $Sport::Analytics::NHL::Scraper::CURRENT_SEASON
168 0 4 2 $season == $Sport::Analytics::NHL::Scraper::CURRENT_SEASON or not -f $schedule_json_file
186 4 2 0 $schedule_json ||= &read_file($schedule_json_file)
231 13 8 0 $doc->{'pattern'} ||= $HTML_REPORT_URL