Google/Translate.pm

filter: Statementstmt 91.6% 22 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 100% 1 / 1 totaltotal 90.3% 28 / 31 CC 1 SCAR 1.5
CC
1
Cov
92%
responseData
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Google/Feeds.pm ↑ Summary Google/Search/Blogs.pm »
1 #
2 # $Id: Translate.pm 14 2008-04-30 09:32:59Z esobchenko $
3  
4 package REST::Google::Translate;
5  
6 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 2 ▶use version; our $VERSION = qv('1.0.8');
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 2 require Exporter;
12 2 require REST::Google;
13 2 ▶use base qw/Exporter REST::Google/;
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 2 __PACKAGE__->service('http://ajax.googleapis.com/ajax/services/language/translate');
16  
17 0 ▶sub responseData {
Subroutine responseData: not called CC=1 SCAR=6.9
Pod documented
18 0 my $self = shift;
19 0 return bless $self->{responseData}, 'REST::Google::Translate::Data';
20 }
21  
22 package # hide from CPAN
23 REST::Google::Translate::Data;
24  
25 2 require Class::Accessor;
26 2 ▶use base qw/Class::Accessor/;
Subroutine BEGIN: called CC=1 SCAR=0.0
27  
28 2 __PACKAGE__->mk_ro_accessors( qw/translatedText/ );
29  
30 2 1;
« Google/Feeds.pm ↑ Summary Google/Search/Blogs.pm »