Branch Coverage

blib/lib/XML/RSS/FOXSports.pm
Criterion Covered Total %
branch 6 78 7.6


line true false branch
32 1 0 unless $opts{'NoUtil'}
33 0 1 if $opts{'Meta'}
34 0 1 if $opts{'Debug'}
44 0 0 if $DEBUG
45 0 0 unless $method =~ /^parse_/
48 0 0 if (defined {BASEBALL => 'http://msn.foxsports.com/feedout/syndicatedContent?categoryId=49', BASKETBALL => 'http://msn.foxsports.com/feedout/syndicatedContent?categoryId=73', COLLEGE_BASKETBALL => 'http://msn.foxsports.com/feedout/syndicatedContent?categoryId=24', COLLEGE_FOOTBALL => 'http://msn.foxsports.com/feedout/syndicatedContent?categoryId=99', FOOTBALL => 'http://msn.foxsports.com/feedout/syndicatedContent?categoryId=5', GOLF => 'http://msn.foxsports.com/feedout/syndicatedContent?categoryId=220', HEADLINES => 'http://msn.foxsports.com/feedout/syndicatedContent?categoryId=0', HOCKEY => 'http://msn.foxsports.com/feedout/syndicatedContent?categoryId=142', HORSERACING => 'http://msn.foxsports.com/feedout/syndicatedContent?categoryId=241', MLB => 'http://msn.foxsports.com/feedout/syndicatedContent?categoryId=49', NASCAR => 'http://msn.foxsports.com/feedout/syndicatedContent?categoryId=167', NBA => 'http://msn.foxsports.com/feedout/syndicatedContent?categoryId=73', NCAA_BK => 'http://msn.foxsports.com/feedout/syndicatedContent?categoryId=99', NCAA_FB => 'http://msn.foxsports.com/feedout/syndicatedContent?categoryId=24', NFL => 'http://msn.foxsports.com/feedout/syndicatedContent?categoryId=5', NHL => 'http://msn.foxsports.com/feedout/syndicatedContent?categoryId=142', SOCCER => 'http://msn.foxsports.com/feedout/syndicatedContent?categoryId=176', TENNIS => 'http://msn.foxsports.com/feedout/syndicatedContent?categoryId=199', WNBA => 'http://msn.foxsports.com/feedout/syndicatedContent?categoryId=90'}->{$feed}) { }
0 0 elsif (defined {BASEBALL_VIDEO => 'http://rss.video.msn.com/s/us/rss.aspx?t=Fox%20Sports&p=33&c=Baseball%20News&title=Fox%20Sports%20video%20-%20Baseball%20News', BASKETBALL_VIDEO => 'http://rss.video.msn.com/s/us/rss.aspx?t=Fox%20Sports&p=33&c=NBA%20News&title=Fox%20Sports%20video%20-%20NBA%20news', COLLEGE_BASKETBALL_VIDEO => 'http://rss.video.msn.com/s/us/rss.aspx?t=Fox%20Sports&p=33&c=College%20BK%20News&title=Fox%20Sports%20video%20-%20College%20BK%20News', COLLEGE_FOOTBALL_VIDEO => 'http://rss.video.msn.com/s/us/rss.aspx?t=Fox%20Sports&p=33&c=College%20FB%20News&title=Fox%20Sports%20video%20-%20College%20FB%20News', FOOTBALL_VIDEO => 'http://rss.video.msn.com/s/us/rss.aspx?t=Fox%20Sports&p=33&c=NFL%20News&title=Fox%20Sports%20video%20-%20NFL%20news', HOCKEY_VIDEO => 'http://rss.video.msn.com/s/us/rss.aspx?t=Fox%20Sports&p=33&c=Hockey%20News&title=Fox%20Sports%20video%20-%20Hockey%20news', MLB_VIDEO => 'http://rss.video.msn.com/s/us/rss.aspx?t=Fox%20Sports&p=33&c=Baseball%20News&title=Fox%20Sports%20video%20-%20Baseball%20News', MORE_VIDEO => 'http://rss.video.msn.com/s/us/rss.aspx?t=Fox%20Sports&p=33&c=More%20Fox%20Sports&title=Fox%20Sports%20video%20-%20More%20Fox%20Sports%25', MOST_WATCHED_VIDEO => 'http://rss.video.msn.com/s/us/rss.aspx?t=hotVideo&c=topsports&title=%20MSN%20Video%20-%20sports&p=05', NBA_VIDEO => 'http://rss.video.msn.com/s/us/rss.aspx?t=Fox%20Sports&p=33&c=NBA%20News&title=Fox%20Sports%20video%20-%20NBA%20news', NCAA_BK_VIDEO => 'http://rss.video.msn.com/s/us/rss.aspx?t=Fox%20Sports&p=33&c=College%20BK%20News&title=Fox%20Sports%20video%20-%20College%20BK%20News', NCAA_FB_VIDEO => 'http://rss.video.msn.com/s/us/rss.aspx?t=Fox%20Sports&p=33&c=College%20FB%20News&title=Fox%20Sports%20video%20-%20College%20FB%20News', NFL_VIDEO => 'http://rss.video.msn.com/s/us/rss.aspx?t=Fox%20Sports&p=33&c=NFL%20News&title=Fox%20Sports%20video%20-%20NFL%20news', NHL_VIDEO => 'http://rss.video.msn.com/s/us/rss.aspx?t=Fox%20Sports&p=33&c=Hockey%20News&title=Fox%20Sports%20video%20-%20Hockey%20news', TOP_NEWS_VIDEO => 'http://rss.video.msn.com/s/us/rss.aspx?t=Fox%20Sports&p=33&c=Top%20News&title=Fox%20Sports%20video%20-%20Top%20news'}->{$feed}) { }
0 0 elsif ($feed =~ /_TEAM$/) { }
54 0 0 unless defined $rss_xml
55 0 0 if $_[0]{'_fsmeta'}
57 0 0 if $_[0]->SUPER::can('parse_string')
70 0 0 unless defined $rss_xml
71 0 0 if $_[0]{'_fsmeta'}
73 0 0 if $_[0]->SUPER::can('parse_string')
81 0 0 if (defined {MLB => {angels => '71589', astros => '71604', athletics => '71597', blue_jays => '71600', braves => '71601', brewers => '71594', cardinals => '71610', cubs => '71602', devil_rays => '71616', diamondbacks => '71615', dodgers => '71605', giants => '71612', indians => '71591', mariners => '71598', marlins => '71614', mets => '71607', nationals => '71606', orioles => '71587', padres => '71611', phillies => '71608', pirates => '71609', rangers => '71599', red_sox => '71588', reds => '71603', rockies => '71613', royals => '71593', tigers => '71592', twins => '71595', white_sox => '71590', yankees => '71596'}, MLS => {chicago => 375, chivas => 3465, chivas_usa => 3465, colorado => 379, columbus => 376, crew => 376, dallas => 377, dc_united => 371, earthquakes => 382, fc_dallas => 377, fire => 375, galaxy => 381, kansas_city => 380, los_angeles => 381, metros => 374, metrostars => 374, new_england => 373, quakes => 382, rapids => 379, real_salt_lake => 2422, revolution => 373, revs => 373, rsl => 2422, san_jose => 382, united => 371, wizards => 380}, NBA => {bobcats => 71951, bucks => 71089, bulls => 71078, cavaliers => 71079, celtics => 71076, clippers => 71086, grizzlies => 71103, hawks => 71075, heat => 71088, hornets => 71077, jazz => 71100, kings => 71097, knicks => 71092, lakers => 71087, magic => 71093, mavericks => 71080, nets => 71091, nuggets => 71081, pacers => 71085, pistons => 71082, raptors => 71102, rockets => 71084, sixers => 71094, spurs => 71098, suns => 71095, supersonics => 71099, timberwolves => 71090, trail_blazers => 71096, warriors => 71083, wizards => 71101}, NFL => {bears => '67040', bengals => '67041', bills => '67039', broncos => '67044', browns => '67042', buccaneers => '67061', cardinals => '67066', chargers => '67068', chiefs => '67049', colts => '67048', cowboys => '67043', dolphins => '67052', eagles => '67058', falcons => '67038', forty_niners => '67059', giants => '67056', jaguars => '67064', jets => '67057', lions => '67045', niners => '67059', packers => '67046', panthers => '67063', patriots => '67054', raiders => '67050', rams => '67051', ravens => '67065', redskins => '67062', saints => '67055', seahawks => '67060', steelers => '67067', texans => '67071', titans => '67047', vikings => '67053'}, NHL => {avalanche => 66316, blackhawks => 66303, blue_jackets => 66328, blues => 66318, bruins => 66300, canadiens => 66309, canucks => 66321, capitals => 66322, coyotes => 66323, devils => 66310, flames => 66302, flyers => 66314, hurricanes => 66306, islanders => 66311, kings => 66307, lightning => 66319, maple_leafs => 66320, mighty_ducks => 66324, oilers => 66305, panthers => 66325, penguins => 66315, predators => 66326, rangers => 66312, red_wings => 66304, sabres => 66301, senators => 66313, sharks => 66317, stars => 66308, thrashers => 66327, wild => 66329}}->{$league})
82 0 0 unless defined $_[1]
89 0 0 unless defined $rss_xml
90 0 0 if $_[0]{'_fsmeta'}
92 0 0 if $_[0]->SUPER::can('parse_string')
106 0 0 if $DEBUG
107 0 0 unless {MLB => {angels => '71589', astros => '71604', athletics => '71597', blue_jays => '71600', braves => '71601', brewers => '71594', cardinals => '71610', cubs => '71602', devil_rays => '71616', diamondbacks => '71615', dodgers => '71605', giants => '71612', indians => '71591', mariners => '71598', marlins => '71614', mets => '71607', nationals => '71606', orioles => '71587', padres => '71611', phillies => '71608', pirates => '71609', rangers => '71599', red_sox => '71588', reds => '71603', rockies => '71613', royals => '71593', tigers => '71592', twins => '71595', white_sox => '71590', yankees => '71596'}, MLS => {chicago => 375, chivas => 3465, chivas_usa => 3465, colorado => 379, columbus => 376, crew => 376, dallas => 377, dc_united => 371, earthquakes => 382, fc_dallas => 377, fire => 375, galaxy => 381, kansas_city => 380, los_angeles => 381, metros => 374, metrostars => 374, new_england => 373, quakes => 382, rapids => 379, real_salt_lake => 2422, revolution => 373, revs => 373, rsl => 2422, san_jose => 382, united => 371, wizards => 380}, NBA => {bobcats => 71951, bucks => 71089, bulls => 71078, cavaliers => 71079, celtics => 71076, clippers => 71086, grizzlies => 71103, hawks => 71075, heat => 71088, hornets => 71077, jazz => 71100, kings => 71097, knicks => 71092, lakers => 71087, magic => 71093, mavericks => 71080, nets => 71091, nuggets => 71081, pacers => 71085, pistons => 71082, raptors => 71102, rockets => 71084, sixers => 71094, spurs => 71098, suns => 71095, supersonics => 71099, timberwolves => 71090, trail_blazers => 71096, warriors => 71083, wizards => 71101}, NFL => {bears => '67040', bengals => '67041', bills => '67039', broncos => '67044', browns => '67042', buccaneers => '67061', cardinals => '67066', chargers => '67068', chiefs => '67049', colts => '67048', cowboys => '67043', dolphins => '67052', eagles => '67058', falcons => '67038', forty_niners => '67059', giants => '67056', jaguars => '67064', jets => '67057', lions => '67045', niners => '67059', packers => '67046', panthers => '67063', patriots => '67054', raiders => '67050', rams => '67051', ravens => '67065', redskins => '67062', saints => '67055', seahawks => '67060', steelers => '67067', texans => '67071', titans => '67047', vikings => '67053'}, NHL => {avalanche => 66316, blackhawks => 66303, blue_jackets => 66328, blues => 66318, bruins => 66300, canadiens => 66309, canucks => 66321, capitals => 66322, coyotes => 66323, devils => 66310, flames => 66302, flyers => 66314, hurricanes => 66306, islanders => 66311, kings => 66307, lightning => 66319, maple_leafs => 66320, mighty_ducks => 66324, oilers => 66305, panthers => 66325, penguins => 66315, predators => 66326, rangers => 66312, red_wings => 66304, sabres => 66301, senators => 66313, sharks => 66317, stars => 66308, thrashers => 66327, wild => 66329}}->{uc $_[1]}
108 0 0 unless {MLB => {angels => '71589', astros => '71604', athletics => '71597', blue_jays => '71600', braves => '71601', brewers => '71594', cardinals => '71610', cubs => '71602', devil_rays => '71616', diamondbacks => '71615', dodgers => '71605', giants => '71612', indians => '71591', mariners => '71598', marlins => '71614', mets => '71607', nationals => '71606', orioles => '71587', padres => '71611', phillies => '71608', pirates => '71609', rangers => '71599', red_sox => '71588', reds => '71603', rockies => '71613', royals => '71593', tigers => '71592', twins => '71595', white_sox => '71590', yankees => '71596'}, MLS => {chicago => 375, chivas => 3465, chivas_usa => 3465, colorado => 379, columbus => 376, crew => 376, dallas => 377, dc_united => 371, earthquakes => 382, fc_dallas => 377, fire => 375, galaxy => 381, kansas_city => 380, los_angeles => 381, metros => 374, metrostars => 374, new_england => 373, quakes => 382, rapids => 379, real_salt_lake => 2422, revolution => 373, revs => 373, rsl => 2422, san_jose => 382, united => 371, wizards => 380}, NBA => {bobcats => 71951, bucks => 71089, bulls => 71078, cavaliers => 71079, celtics => 71076, clippers => 71086, grizzlies => 71103, hawks => 71075, heat => 71088, hornets => 71077, jazz => 71100, kings => 71097, knicks => 71092, lakers => 71087, magic => 71093, mavericks => 71080, nets => 71091, nuggets => 71081, pacers => 71085, pistons => 71082, raptors => 71102, rockets => 71084, sixers => 71094, spurs => 71098, suns => 71095, supersonics => 71099, timberwolves => 71090, trail_blazers => 71096, warriors => 71083, wizards => 71101}, NFL => {bears => '67040', bengals => '67041', bills => '67039', broncos => '67044', browns => '67042', buccaneers => '67061', cardinals => '67066', chargers => '67068', chiefs => '67049', colts => '67048', cowboys => '67043', dolphins => '67052', eagles => '67058', falcons => '67038', forty_niners => '67059', giants => '67056', jaguars => '67064', jets => '67057', lions => '67045', niners => '67059', packers => '67046', panthers => '67063', patriots => '67054', raiders => '67050', rams => '67051', ravens => '67065', redskins => '67062', saints => '67055', seahawks => '67060', steelers => '67067', texans => '67071', titans => '67047', vikings => '67053'}, NHL => {avalanche => 66316, blackhawks => 66303, blue_jackets => 66328, blues => 66318, bruins => 66300, canadiens => 66309, canucks => 66321, capitals => 66322, coyotes => 66323, devils => 66310, flames => 66302, flyers => 66314, hurricanes => 66306, islanders => 66311, kings => 66307, lightning => 66319, maple_leafs => 66320, mighty_ducks => 66324, oilers => 66305, panthers => 66325, penguins => 66315, predators => 66326, rangers => 66312, red_wings => 66304, sabres => 66301, senators => 66313, sharks => 66317, stars => 66308, thrashers => 66327, wild => 66329}}->{uc $_[1]}{lc $_[2]}
110 0 0 if $DEBUG
116 0 1 $_[1] ? :
117 0 0 unless $_[0]{'_fsmeta'}{'last_parsed_url'}
118 0 0 unless $_[0]{'_fsmeta'}{'last_parsed_feed'}
119 0 0 unless $_[0]{'_fsmeta'}{'parsed_feeds'}
122 0 0 $_[0]{'_fsutil'} ? :
128 0 0 $_[0]{'_fsutil'} ? :
134 0 0 $_[0]{'_fsutil'} ? :
140 0 0 $_[0]{'_fsutil'} ? :
146 1 0 $_[0]{'_fsutil'} ? :
152 0 0 $_[0]{'_fsutil'} ? :
158 0 0 $_[0]{'_fsutil'} ? :
164 0 0 $_[0]{'_fsutil'} ? :
169 0 1 $_[1] ? :
183 0 0 if $DEBUG
184 0 0 if $DEBUG
185 0 0 if $res->is_success