Condition Coverage

blib/lib/Sport/Analytics/NHL/Scraper.pm
Criterion Covered Total %
condition 26 48 54.1


and 3 conditions

line !l l&&!r l&&r condition
168 32 3 41 not $content and $r++ < $opts->{'retries'}
253 35 0 0 $opts->{'game_files'} and not $opts->{'game_files'}{$doc}
259 21 0 0 -f $file and not $opts->{'force'}
289 4 0 1 -f $file and -M $file < $opts->{'playerfile_expiration'}
4 1 0 -f $file and -M $file < $opts->{'playerfile_expiration'} and not $opts->{'force'}

or 2 conditions

line l !l condition
163 7 28 $opts->{'validate'} ||= sub { 1; }
247 0 7 shift() || {}
257 13 8 $doc->{'extension'} ||= 'html'

or 3 conditions

line l !l&&r !l&&!r condition
162 0 35 0 $opts->{'retries'} ||= $DEFAULT_RETRIES
185 5 0 0 $opts->{'start_season'} || $Sport::Analytics::NHL::Scraper::FIRST_SEASON
186 5 0 0 $opts->{'stop_season'} || $Sport::Analytics::NHL::Scraper::CURRENT_SEASON
193 0 4 2 $season == $Sport::Analytics::NHL::Scraper::CURRENT_SEASON or not -f $schedule_json_file
211 4 2 0 $schedule_json ||= &read_file($schedule_json_file)
256 13 8 0 $doc->{'pattern'} ||= $HTML_REPORT_URL
284 5 0 0 $ENV{'HOCKEYDB_DATA_DIR'} || $Sport::Analytics::NHL::Scraper::DATA_DIR
0 5 0 $opts->{'data_dir'} ||= $ENV{'HOCKEYDB_DATA_DIR'} || $Sport::Analytics::NHL::Scraper::DATA_DIR
285 0 5 0 $opts->{'playerfile_expiration'} ||= $Sport::Analytics::NHL::Scraper::DEFAULT_PLAYERFILE_EXPIRATION