Condition Coverage

blib/lib/WebService/Antigate.pm
Criterion Covered Total %
condition 19 43 44.1


and 3 conditions

line !l l&&!r l&&r condition
76 2 0 0 not $captcha_id and $self->{'errno'} eq 'ERROR_NO_SLOT_AVAILABLE' || $self->{'errno'} eq 'HTTP_ERROR'
0 0 0 not $captcha_id and $self->{'errno'} eq 'ERROR_NO_SLOT_AVAILABLE' || $self->{'errno'} eq 'HTTP_ERROR' and defined $self->{'wait'} ? time - $start < $self->{'wait'} : 1
0 0 0 not $captcha_id and $self->{'errno'} eq 'ERROR_NO_SLOT_AVAILABLE' || $self->{'errno'} eq 'HTTP_ERROR' and defined $self->{'wait'} ? time - $start < $self->{'wait'} : 1 and $attempts != $self->{'attempts'}
0 0 0 not $captcha_id and $self->{'errno'} eq 'ERROR_NO_SLOT_AVAILABLE' || $self->{'errno'} eq 'HTTP_ERROR' and defined $self->{'wait'} ? time - $start < $self->{'wait'} : 1 and $attempts != $self->{'attempts'} and sleep $self->{'delay'}
98 2 2 1 not $captcha_text and $self->{'errno'} eq 'CAPCHA_NOT_READY' || $self->{'errno'} eq 'HTTP_ERROR'
2 0 1 not $captcha_text and $self->{'errno'} eq 'CAPCHA_NOT_READY' || $self->{'errno'} eq 'HTTP_ERROR' and defined $self->{'wait'} ? time - $start < $self->{'wait'} : 1
0 0 1 not $captcha_text and $self->{'errno'} eq 'CAPCHA_NOT_READY' || $self->{'errno'} eq 'HTTP_ERROR' and defined $self->{'wait'} ? time - $start < $self->{'wait'} : 1 and $attempts != $self->{'attempts'}

or 2 conditions

line l !l condition
31 2 5 $args{'scheme'} || 'http'
33 3 4 $args{'api_version'} || 1

or 3 conditions

line l !l&&r !l&&!r condition
28 0 7 0 $args{'ua'} || 'LWP::UserAgent'->new
29 2 5 0 $args{'domain'} || $DOMAIN
30 2 5 0 $args{'delay'} || $DELAY
35 0 0 7 defined $self->{'wait'} or defined $self->{'attempts'}
76 0 0 0 $self->{'errno'} eq 'ERROR_NO_SLOT_AVAILABLE' || $self->{'errno'} eq 'HTTP_ERROR'
98 1 0 2 $self->{'errno'} eq 'CAPCHA_NOT_READY' || $self->{'errno'} eq 'HTTP_ERROR'