Branch Coverage

blib/lib/I22r/Translate/Google.pm
Criterion Covered Total %
branch 0 52 0.0


line true false branch
41 0 0 if (scalar @_ > 1) { }
0 0 elsif (ref $_[0]) { }
42 0 0 if (@_ % 2)
47 0 0 unless %{$_[0];}
0 0 unless (eval { do { local $SIG{'__DIE__'}; 1 unless %{$_[0];} } })
59 0 0 unless defined $class->service
63 0 0 unless (defined $class->http_referer)
74 0 0 unless ($response->is_success)
112 0 0 unless $self->name
117 0 0 if ($lang1 eq $lang2)
121 0 0 unless " $langs " =~ / $lang1 / and " $langs " =~ / $lang2 /
123 0 0 if ($lang1 =~ /zh/ and $lang2 =~ /zh/)
133 0 0 unless $req->config('ENABLED')
134 0 0 unless $self->network_available
136 0 0 unless $api_key
138 0 0 unless ($self->config('REFERER_SET'))
159 0 0 if $req->timed_out
168 0 0 unless defined $otext
172 0 0 if (defined $otext)
176 0 0 if (@itext == 0 and @text > 0)
192 0 0 if ($res) { }
0 0 elsif ($@ =~ /connect to www.googleapis.com/) { }
0 0 elsif ($@ =~ /HTTP response failed: 400/) { }
0 0 elsif ($@) { }
217 0 0 if (++$self->config->{'_NETWORK_ERR'} > 100)
228 0 0 if ($@)