Condition Coverage

blib/lib/JSON/MaybeXS.pm
Criterion Covered Total %
condition 13 24 54.1


and 3 conditions

line !l l&&!r l&&r condition
12 6 0 0 $INC{'JSON/XS.pm'} and eval { do { "JSON::XS"->VERSION(3); 1 } }
61 21 20 0 not !builtin::blessed($_[0]) and $_[0]->isa('JSON::PP::Boolean') || $_[0]->isa('Cpanel::JSON::XS::Boolean') || $_[0]->isa('JSON::XS::Boolean')
78 1 0 0 @_ == 2 and ref $_[1] eq "HASH"
89 1 0 1 @_ > 2 and $_[0] =~ /^JSON/
97 1 0 0 @_ == 2 and ref $_[1] eq "HASH"

or 3 conditions

line l !l&&r !l&&!r condition
61 14 3 3 $_[0]->isa('JSON::PP::Boolean') || $_[0]->isa('Cpanel::JSON::XS::Boolean') || $_[0]->isa('JSON::XS::Boolean')
73 0 1 1 ref($_[0]) =~ /^JSON/ or $_[0] =~ /^JSON/
89 0 2 0 ref($_[0]) =~ /^JSON/ or @_ > 2 and $_[0] =~ /^JSON/