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}
102 0 0 0 defined wantarray and length $response->{'content'}
118 0 0 0 defined $hint and ref $hint eq 'ARRAY'
140 0 0 0 defined wantarray and length $response->{'content'}
155 0 0 0 defined $to_lang and exists $valid_lang{$to_lang}
189 0 0 0 defined wantarray and length $response->{'content'}
213 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
149 0 0 0 not defined $from_lang or exists $valid_lang{$from_lang}
161 0 0 0 not defined $format or exists $valid_format{$format}
167 0 0 0 not defined $options or exists $valid_options{$options}