Branch Coverage

blib/lib/WebService/Async/CustomerIO.pm
Criterion Covered Total %
branch 27 38 71.0


line true false branch
74 5 67 unless exists $args->{$k}
75 67 0 if exists $args->{$k}
85 0 63 if exists $args{$k}
153 0 1 unless $self->api_token
164 3 3 if $self->{'ratelimiters'}{$type}
166 0 3 unless $self->loop
185 0 10 $method eq 'POST' ? :
1 10 $data ? :
209 0 8 unless $err_type and $err_type eq "http"
219 13 7 unless $code =~ /$PATTERN_FOR_ERROR{$error_code}/
234 0 11 $headers->{'authorization'} ? :
10 1 !defined($body) ? :
240 0 0 if $self->{'ua'}
312 1 2 unless $segment_id
313 1 1 unless ref $customers_ids eq "ARRAY"
331 1 2 unless $segment_id
332 1 1 unless ref $customers_ids eq "ARRAY"
350 0 1 unless $email
356 0 1 if (ref $resp ne "HASH" or ref $resp->{'results'} ne "ARRAY")