Condition Coverage

blib/lib/Yandex/Translate.pm
Criterion Covered Total %
condition 3 36 8.3


and 3 conditions

line !l l&&!r l&&r condition
78 0 3 0 defined $ui && exists $valid_lang{$ui}
84 0 0 0 defined $this_default_ui and exists $valid_default_ui{$this_default_ui}
103 0 0 0 defined wantarray and length $response->{'content'}
119 0 0 0 defined $hint and ref $hint eq 'ARRAY'
143 0 0 0 defined wantarray and length $response->{'content'}
158 0 0 0 defined $to_lang and exists $valid_lang{$to_lang}
196 0 0 0 defined wantarray and length $response->{'content'}
220 3 0 0 defined $attribute and ref $attribute eq 'HASH'

or 3 conditions

line l !l&&r !l&&!r condition
50 0 1 0 shift() || $default_ui
152 0 0 0 not defined $from_lang or exists $valid_lang{$from_lang}
164 0 0 0 not defined $format or exists $valid_format{$format}
170 0 0 0 not defined $options or exists $valid_options{$options}