Branch Coverage

blib/lib/Net/Pface.pm
Criterion Covered Total %
branch 24 44 54.5


line true false branch
28 0 1 unless defined $self->{'id'}
29 0 1 unless defined $self->{'key'}
30 1 0 unless (defined $self->{'server'})
31 1 0 unless (defined $self->{'timeout'})
32 1 0 unless (defined $self->{'agent'})
33 1 0 unless (defined $self->{'type'})
34 0 1 unless (defined $self->{'cache_time'})
55 0 2 unless (defined $user_id)
56 0 2 unless (@fields)
58 0 2 if exists $result->{'error'}
63 1 1 if $cache
97 0 2 unless (defined $ip)
98 0 2 unless (defined $s2)
99 0 2 unless (defined $s1)
101 0 2 if exists $result->{'error'}
106 1 1 if $cache
140 2 0 unless ($_[1]->is_success)
142 2 0 if exists do { $_[0] }->{'error'}
146 0 0 unless (eval { do { $_[0] = $self->{'json_xs'}->decode($content) } })
159 2 2 if (defined $self->{'cache_data'}{$memkey})
160 2 0 if ($self->{'cache_data'}{$memkey}{'time'} > time)
163 2 0 unless ($result->{'is_cache'})