Branch Coverage

blib/lib/Net/Duo.pm
Criterion Covered Total %
branch 18 32 56.2


line true false branch
56 10 0 if ($args_ref->{'key_file'})
60 0 10 if ($@)
68 0 30 unless (defined $self->{$key})
102 12 34 unless defined $args_ref
167 0 46 unless ($path =~ m[ \A / ]msux)
190 22 24 if ($method eq 'POST' or $method eq 'PUT') { }
11 13 elsif (not defined $args) { }
225 0 45 unless (defined $content)
226 0 0 if ($response->is_success) { }
237 0 45 if ($@)
238 0 0 if ($response->is_success) { }
247 0 45 if (not defined $data->{'stat'} or $data->{'stat'} ne 'OK')
253 0 45 unless (defined $data->{'response'})
295 0 4 $args_ref ? :
301 0 4 if (ref $data->{'response'} ne 'ARRAY')
308 2 2 if ($data->{'metadata'} and exists $data->{'metadata'}{'next_offset'}) { }