Branch Coverage

blib/lib/Yandex/Translate.pm
Criterion Covered Total %
branch 8 102 7.8


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}
93 0 0 unless defined $self->{'_key_'}
99 0 0 if $response->{'status'} eq '401'
100 0 0 if $response->{'status'} eq '402'
101 0 0 unless $response->{'success'}
103 0 0 if (defined wantarray and length $response->{'content'})
105 0 0 wantarray ? :
112 0 0 if defined $text
119 0 0 if (defined $hint and ref $hint eq 'ARRAY')
121 0 0 if exists $valid_lang{$_}
124 0 0 @valid_hint_lang ? :
130 0 0 unless defined $self->{'_key_'}
131 0 0 unless defined $self->{'_text_'}
135 0 0 if defined $self->{'_hint_'}
138 0 0 if $response->{'status'} eq '401'
139 0 0 if $response->{'status'} eq '402'
140 0 0 if $response->{'status'} eq '404'
141 0 0 unless $response->{'success'}
143 0 0 if (defined wantarray and length $response->{'content'})
145 0 0 wantarray ? :
152 0 0 if not defined $from_lang or exists $valid_lang{$from_lang}
158 0 0 if defined $to_lang and exists $valid_lang{$to_lang}
164 0 0 if not defined $format or exists $valid_format{$format}
170 0 0 if not defined $options or exists $valid_options{$options}
176 0 0 unless defined $self->{'_key_'}
177 0 0 unless defined $self->{'_text_'}
178 0 0 unless defined $self->{'_from_lang_'}
179 0 0 unless defined $self->{'_to_lang_'}
182 0 0 defined $self->{'_from_lang_'} ? :
184 0 0 if defined $self->{'_format_'}
185 0 0 if defined $self->{'_options_'}
188 0 0 if $response->{'status'} eq '401'
189 0 0 if $response->{'status'} eq '402'
190 0 0 if $response->{'status'} eq '404'
191 0 0 if $response->{'status'} eq '413'
192 0 0 if $response->{'status'} eq '422'
193 0 0 if $response->{'status'} eq '501'
194 0 0 unless $response->{'success'}
196 0 0 if (defined wantarray and length $response->{'content'})
198 0 0 if (defined $self->{'_options_'}) { }
202 0 0 wantarray ? :
218 3 0 if (defined wantarray)
220 0 3 if (defined $attribute and ref $attribute eq 'HASH')
222 0 0 if lc $key ne 'href'
230 0 3 %yandex_attribute ? :
242 3 0 exists $yandex_url{$self->{'_ui_'}} ? :
243 3 0 exists $yandex_text{$self->{'_ui_'}} ? :
245 0 3 wantarray ? :