File Coverage

blib/lib/WebService/GData/YouTube/Query.pm
Criterion Covered Total %
statement 6 12 50.0
branch n/a
condition n/a
subroutine 2 5 40.0
pod 3 3 100.0
total 11 20 55.0


line stmt bran cond sub pod time code
1             package WebService::GData::YouTube::Query;
2 4     4   42843 use WebService::GData::Query;
  4         8  
  4         39  
3 4     4   23 use base 'WebService::GData::Query';
  4         7  
  4         1094  
4             our $VERSION = 0.01_02;
5              
6              
7             WebService::GData::Query::disable([qw(updated_min updated_max published_min published_max)]);
8              
9             WebService::GData::Query::install([qw(key uploader format time restriction orderby lr location_radius location inline lang fmt)]);
10              
11             sub safe_search {
12 0     0 1   my ($this,$val)=@_;
13 0           return $this->_set_query('safeSearch',$val);
14             }
15              
16             sub location_plottable {
17 0     0 1   my ($this,$location)=@_;
18 0           return $this->_set_query('location',$location.'!');
19             }
20              
21             #need to better handle the caption...
22             sub caption {
23 0     0 1   my ($this,$val)=@_;
24 0           return $this->_set_query('caption',$val);
25             }
26              
27             "The earth is blue like an orange.";
28              
29             __END__