Condition Coverage

blib/lib/Lingua/Translate/Google.pm
Criterion Covered Total %
condition 17 48 35.4


and 3 conditions

line !l l&&!r l&&r condition
174 0 0 1 defined $$r{'data'} and defined $$r{'data'}{'detections'}
0 0 1 defined $$r{'data'} and defined $$r{'data'}{'detections'} and defined $$r{'data'}{'detections'}[0]
199 0 0 3 defined $$r{'data'} and defined $$r{'data'}{'translations'}
0 0 3 defined $$r{'data'} and defined $$r{'data'}{'translations'} and defined $$r{'data'}{'translations'}[0]
242 0 5 0 $lang_inquiry and $lang_target eq 'auto'
250 0 0 5 defined $$r{'data'} and defined $$r{'data'}{'languages'}
0 0 5 defined $$r{'data'} and defined $$r{'data'}{'languages'} and defined $$r{'data'}{'languages'}[0]
259 0 4 5 $lang_inquiry and $$lang_rh{'language'} eq lc $lang_inquiry

or 3 conditions

line l !l&&r !l&&!r condition
63 1 0 0 $config{'src'} || $config{'default_source'} || $$self{'src'}
68 1 0 0 $config{'dest'} || $config{'default_target'} || $$self{'dest'}
73 1 0 0 $config{'api_key'} || $config{'key'} || $$self{'api_key'}
78 0 1 0 $config{'agent'} || $$self{'agent'}
120 2 0 0 $$self{$p} ||= $param{$p}
128 1 0 0 $param{'src'} || $param{'source'} || $param{'default_source'}
129 1 0 0 $param{'dest'} || $param{'target'} || $param{'default_target'}
240 0 5 0 $lang_target ||= $$self{'dest'}