| blib/lib/WebService/Google/Language.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 18 | 25 | 72.0 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 103 | 1 | 1 | 13 | $json and $json->isa('JSON') |
| 115 | 3 | 1 | 13 | defined $referer and $referer =~ /\S/ |
| 119 | 1 | 2 | 1 | $caller && $caller eq ref($self) . '::new' |
| 133 | 1 | 1 | 13 | $ua and $ua->isa('LWP::UserAgent') |
| 149 | 2 | 2 | 4 | defined $text and $text =~ /\S/ |
| 229 | 1 | 0 | 0 | $_[0]{'responseStatus'} && $_[0]{'responseStatus'} != 200 |
| line | l | !l | condition |
|---|---|---|---|
| 72 | 0 | 5 | $args{'src'} || $$self{'src'} || '' |
| 73 | 0 | 5 | $args{'dest'} || $$self{'dest'} || 'en' |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 245 | 0 | 0 | 0 | $_[0]{'responseData'}{'language'} || $_[0]{'responseData'}{'detectedSourceLanguage'} |