Branch Coverage

blib/lib/Business/Tax/VAT/Validation.pm
Criterion Covered Total %
branch 8 48 16.6


line true false branch
211 0 0 unless $vatNumber
214 0 0 if ($vatNumber)
215 0 0 if ($countryCode eq "GB")
234 0 144 unless $vatn
237 59 85 if ($vatn) { }
263 0 0 if ($key) { }
346 0 0 if (ref $self->{'proxy'} eq 'ARRAY') { }
364 0 0 if $self->_is_res_ok($response->code, $response->decoded_content)
376 0 0 if ($response->code == 200) { }
0 0 elsif ($response->code == 404) { }
0 0 elsif ($response->code == 400) { }
409 59 85 if (not $mscc and $vatn =~ s/^($self->{'members'}) ?/$null;/e)
412 0 144 unless $mscc =~ /^($self->{'members'})$/
415 85 59 unless $vatn =~ /^$re$/
439 0 0 if ($code == 200) { }
440 0 0 if ($res =~ m[ *(.*?) *]) { }
442 0 0 if ($v eq 'true' or $v eq '1') { }
443 0 0 if ($res =~ m[ *(.*?) *])
446 0 0 if ($res =~ m[
*(.*?) *
])
458 0 0 if ($res =~ m[ *(.*?) * * *(.*?) *]) { }
0 0 elsif ($res =~ /^Can't connect to/) { }
461 0 0 if ($faultcode eq 'soap:Server' and $faultstring eq 'TIMEOUT') { }
0 0 elsif ($faultcode eq 'soap:Server' and $faultstring eq 'MS_UNAVAILABLE') { }
0 0 elsif ($faultstring =~ /^Couldn't parse stream/) { }