TVRage.pm untested

filter: Statementstmt 0.0% 0 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod n/a totaltotal 0.0% 0 / 13 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package WebService::TVRage;
2  
3 use 5.010000;
4 use strict;
5 use warnings;
6  
7 our $VERSION = '0.11';
8  
9  
10  
11 1;
12  
13 =head1 NAME
14  
15 WebService::TVRage - Perl extension for using TVRage's XML Service
16  
17 =head1 SYNOPSIS
18  
19 use WebService::TVRage::EpisodeListRequest;
20 use WebService::TVRage::ShowSearchRequest;
21 my $searchReq = WebService::TVRage::ShowSearchRequest->new();
22 my $searchResults = $searchReq->search('Heroes');
23 my $heroFromSearch = $searchResults->getShow('Heroes');
24 print $heroFromSearch->getLink(), "\n";
25 print $heroFromSearch->getCountry(), "\n";
26 print $heroFromSearch->getStatus(), "\n";
27 my $heroes = WebService::TVRage::EpisodeListRequest->new( 'episodeID' => $heroFromSearch->getShowID() );
28 my $episodeList = $heroes->getEpisodeList();
29 print $episodeList->getNumSeasons(), "\n";
30 my $episode = $episodeList->getEpisode(1,3);
31 print $episode->getTitle(), "\n";
32 print $episode->getAirDate(), "\n";
33 foreach my $showtitle ($searchResults->getTitleList()) {
34 my $show = $searchResults->getShow($showtitle);
35 print $show->getLink();
36 }
37  
38 =head1 DESCRIPTION
39  
40 This module itself doesn't do anything, just a place holder so you can install will 'WebService::TVRage' See the objects for their various functions. The convention of this module is that if requests fail, they return empty strings when strings are requested and undef when objects are requested.
41  
42 =head1 AUTHOR
43  
44 Kyle Brandt , kyle@kbrandt.com , http://www.kbrandt.com
45  
46 =head1 COPYRIGHT AND LICENSE
47  
48 Copyright (C) 2009 by Kyle Brandt
49  
50 This library is free software; you can redistribute it and/or modify
51 it under the same terms as Perl itself, either Perl version 5.10.0 or,
52 at your option, any later version of Perl 5 you may have available.
53  
54  
55 =cut