Branch Coverage

blib/lib/WebService/Antigate/V1.pm
Criterion Covered Total %
branch 19 32 59.3


line true false branch
31 0 2 if defined $opts{'file'} and not -e $opts{'file'}
66 0 1 !($file =~ /\..{1,5}$/) ? :
0 1 defined $opts{'name'} ? :
0 0 defined $opts{'name'} ? :
1 0 defined $opts{'file'} ? :
1 1 defined $opts{'file'} || defined $opts{'content'} ? :
73 0 2 unless ($response->is_success)
80 0 2 unless (($captcha_id) = $response->content =~ /OK\|(\d+)/)
92 0 2 unless defined $id
96 0 2 unless ($response->is_success)
103 1 1 unless (($captcha_text) = $response->content =~ /OK\|(.+)/)
115 0 2 unless defined $id
119 0 2 unless ($response->is_success)
125 1 1 unless ($response->content eq 'OK_REPORT_RECORDED')
140 0 2 unless ($response->is_success)
146 1 1 if ($response->content =~ /^ERROR_/)