Branch Coverage

blib/lib/Net/Dynect/REST/Response.pm
Criterion Covered Total %
branch 28 48 58.3


line true false branch
62 0 1 unless defined $args{'format'}
63 0 1 unless defined $args{'content'}
65 1 0 if defined $args{'request_duration'}
67 1 0 if defined $args{'request_time'}
69 1 0 if ($args{'format'} eq 'JSON')
80 0 1 if (ref $$hash{'data'} eq 'ARRAY') { }
111 1 1 if (@_)
113 1 0 unless defined $new
114 0 0 unless ($new =~ /^\d+$/)
131 1 4 if (@_)
133 0 1 unless ($new =~ /^success|failure|incomplete$/)
150 0 4 if (@_)
165 1 3 if (@_)
180 1 5 if (@_)
182 0 1 unless $new_time =~ /^\d+(\.\d+)?$/
196 1 2 if (@_)
198 0 1 unless $new_time =~ /^\d+$/
207 0 1 if defined $self->job_id
208 1 0 if defined $self->status
209 1 0 if defined $self->request_time
211 1 0 if defined $self->request_duration
214 1 0 if defined $self->msgs
217 0 1 if (ref $self->data eq 'ARRAY') { }
223 1 0 if defined $self->data