Branch Coverage

blib/lib/Yandex/Translate.pm
Criterion Covered Total %
branch 0 88 0.0


line true false branch
51 0 0 defined $t ? :
69 0 0 if defined $key
75 0 0 defined $ui && exists $valid_lang{$ui} ? :
81 0 0 if defined $this_default_ui and exists $valid_default_ui{$this_default_ui}
94 0 0 if $response->{'status'} eq '401'
95 0 0 if $response->{'status'} eq '402'
96 0 0 unless $response->{'success'}
98 0 0 if (defined wantarray and length $response->{'content'})
100 0 0 wantarray ? :
107 0 0 if defined $text
114 0 0 if (defined $hint and ref $hint eq 'ARRAY')
116 0 0 if exists $valid_lang{$_}
119 0 0 @valid_hint_lang ? :
127 0 0 if defined $self->{'_hint_'}
130 0 0 if $response->{'status'} eq '401'
131 0 0 if $response->{'status'} eq '402'
132 0 0 if $response->{'status'} eq '404'
133 0 0 unless $response->{'success'}
135 0 0 if (defined wantarray and length $response->{'content'})
137 0 0 wantarray ? :
144 0 0 if not defined $from_lang or exists $valid_lang{$from_lang}
150 0 0 if defined $to_lang and exists $valid_lang{$to_lang}
156 0 0 if not defined $format or exists $valid_format{$format}
162 0 0 if not defined $options or exists $valid_options{$options}
169 0 0 defined $self->{'_from_lang_'} ? :
171 0 0 if defined $self->{'_format_'}
172 0 0 if defined $self->{'_options_'}
175 0 0 if $response->{'status'} eq '401'
176 0 0 if $response->{'status'} eq '402'
177 0 0 if $response->{'status'} eq '404'
178 0 0 if $response->{'status'} eq '413'
179 0 0 if $response->{'status'} eq '422'
180 0 0 if $response->{'status'} eq '501'
181 0 0 unless $response->{'success'}
183 0 0 if (defined wantarray and length $response->{'content'})
185 0 0 if (defined $self->{'_options_'}) { }
189 0 0 wantarray ? :
204 0 0 if (defined wantarray)
206 0 0 if (defined $attribute and ref $attribute eq 'HASH')
208 0 0 if lc $key ne 'href'
216 0 0 %yandex_attribute ? :
226 0 0 exists $yandex_url{$self->{'_ui_'}} ? :
227 0 0 exists $yandex_text{$self->{'_ui_'}} ? :
229 0 0 wantarray ? :