Branch Coverage

blib/lib/Yandex/Translate.pm
Criterion Covered Total %
branch 8 88 9.0


line true false branch
64 0 1 if defined $self->{'_text_'}
72 0 0 if defined $key
78 3 0 defined $ui && exists $valid_lang{$ui} ? :
84 0 0 if defined $this_default_ui and exists $valid_default_ui{$this_default_ui}
98 0 0 if $response->{'status'} eq '401'
99 0 0 if $response->{'status'} eq '402'
100 0 0 unless $response->{'success'}
102 0 0 if (defined wantarray and length $response->{'content'})
104 0 0 wantarray ? :
111 0 0 if defined $text
118 0 0 if (defined $hint and ref $hint eq 'ARRAY')
120 0 0 if exists $valid_lang{$_}
123 0 0 @valid_hint_lang ? :
132 0 0 if defined $self->{'_hint_'}
135 0 0 if $response->{'status'} eq '401'
136 0 0 if $response->{'status'} eq '402'
137 0 0 if $response->{'status'} eq '404'
138 0 0 unless $response->{'success'}
140 0 0 if (defined wantarray and length $response->{'content'})
142 0 0 wantarray ? :
149 0 0 if not defined $from_lang or exists $valid_lang{$from_lang}
155 0 0 if defined $to_lang and exists $valid_lang{$to_lang}
161 0 0 if not defined $format or exists $valid_format{$format}
167 0 0 if not defined $options or exists $valid_options{$options}
175 0 0 defined $self->{'_from_lang_'} ? :
177 0 0 if defined $self->{'_format_'}
178 0 0 if defined $self->{'_options_'}
181 0 0 if $response->{'status'} eq '401'
182 0 0 if $response->{'status'} eq '402'
183 0 0 if $response->{'status'} eq '404'
184 0 0 if $response->{'status'} eq '413'
185 0 0 if $response->{'status'} eq '422'
186 0 0 if $response->{'status'} eq '501'
187 0 0 unless $response->{'success'}
189 0 0 if (defined wantarray and length $response->{'content'})
191 0 0 if (defined $self->{'_options_'}) { }
195 0 0 wantarray ? :
211 3 0 if (defined wantarray)
213 0 3 if (defined $attribute and ref $attribute eq 'HASH')
215 0 0 if lc $key ne 'href'
223 0 3 %yandex_attribute ? :
235 3 0 exists $yandex_url{$self->{'_ui_'}} ? :
236 3 0 exists $yandex_text{$self->{'_ui_'}} ? :
238 0 3 wantarray ? :