Condition Coverage

blib/lib/JSON/API.pm
Criterion Covered Total %
condition 18 25 72.0


and 3 conditions

line !l l&&!r l&&r condition
59 26 0 0 $apphdr and ref $apphdr
182 31 2 4 $ua_opts{'realm'} and $ua_opts{'user'}
2 1 3 $ua_opts{'realm'} and $ua_opts{'user'} and $ua_opts{'pass'}

or 2 conditions

line l !l condition
42 8 37 $2 || ''
91 18 4 $self->_decode($res->content) || {}

or 3 conditions

line l !l&&r !l&&!r condition
107 10 0 3 ref $obj eq "HASH" or ref $obj eq "ARRAY"
116 8 2 0 $self->{'_json'} ||= _build_json()
142 21 6 0 $self->{'_json'} ||= _build_json()
176 0 37 0 ref $class || $class