| 1 | #================================================================================ | ||||||||||||||||||||||||||||
| 2 | # Copyright (c) Brian Perez 2005. All rights reserved. | ||||||||||||||||||||||||||||
| 3 | #-------------------------------------------------------------------------------- | ||||||||||||||||||||||||||||
| 4 | # This library is free software; you can redistribute it | ||||||||||||||||||||||||||||
| 5 | # and/or modify it under the same terms as Perl itself. | ||||||||||||||||||||||||||||
| 6 | #================================================================================ | ||||||||||||||||||||||||||||
| 7 | package XML::RSS::FOXSports::Utils; | ||||||||||||||||||||||||||||
| 8 | |||||||||||||||||||||||||||||
| 9 | 1 | ▶ | use strict; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 10 | 1 | ▶ | use warnings; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 11 | |||||||||||||||||||||||||||||
| 12 | 1 | ▶ | use Carp; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 13 | 1 | ▶ | use XML::RSS::FOXSports::Constants qw(:all); | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 14 | |||||||||||||||||||||||||||||
| 15 | 1 | our $VERSION = '0.01'; | |||||||||||||||||||||||||||
| 16 | |||||||||||||||||||||||||||||
| 17 | 1 | my ($hfds, $vfds, $teams, $mw_url) = (HEADLINE_FEED_URLS, VIDEO_FEED_URLS, TEAM_TO_ID, MOST_WATCHED_URL); | |||||||||||||||||||||||||||
| 18 | |||||||||||||||||||||||||||||
| 19 | 1 | ▶ | sub new { bless {}, shift }; | ||||||||||||||||||||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||||||||||
| 20 | 0 | ▶ | sub get_available_feeds { keys %$hfds, keys %$vfds } | ||||||||||||||||||||||||||
|
Subroutine
get_available_feeds: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||||||
| 21 | 0 | ▶ | sub get_available_headline_feeds { keys %$hfds } | ||||||||||||||||||||||||||
|
Subroutine
get_available_headline_feeds: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||||||
| 22 | 0 | ▶ | sub get_available_video_feeds { keys %$vfds } | ||||||||||||||||||||||||||
|
Subroutine
get_available_video_feeds: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||||||
| 23 | 1 | ▶ | sub get_available_leagues { keys %$teams } | ||||||||||||||||||||||||||
|
Subroutine
get_available_leagues: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||
| 24 | 0 | ▶ | sub get_available_teams { map { keys %{ $teams->{$_} } } keys %$teams } | ||||||||||||||||||||||||||
|
Subroutine
get_available_teams: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||||||
| 25 | 0 | ▶ | sub get_available_leagues_teams { $teams } | ||||||||||||||||||||||||||
|
Subroutine
get_available_leagues_teams: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||||||
| 26 | 0 | ▶ | sub get_feed_url { $hfds->{$_[1]} or $vfds->{$_[1]} or croak "url for $_[1] feed was not found." } | ||||||||||||||||||||||||||
|
Subroutine
get_feed_url: not called CC=3 SCAR=24.8
Pod
documented
Branch: 1 branch
Condition0%0/3
$$hfds{$_[1]} or $$vfds{$_[1]}
MC/DC0%0/2
$$hfds{$_[1]} or $$vfds{$_[1]}
$$hfds{$_[1]}
$$vfds{$_[1]}
Truth table0%0/3
A or B
A= $$hfds{$_[1]}B= $$vfds{$_[1]}
| |||||||||||||||||||||||||||||
| 27 | 0 | ▶ | sub get_feed_urls { values %{ $hfds }, values %{ $vfds }, $mw_url } | ||||||||||||||||||||||||||
|
Subroutine
get_feed_urls: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||||||
| 28 | |||||||||||||||||||||||||||||
| 29 | |||||||||||||||||||||||||||||
| 30 | __END__ | ||||||||||||||||||||||||||||