Condition Coverage

blib/lib/Text/KDL/XS/Emitter.pm
Criterion Covered Total %
condition 19 33 57.5


and 3 conditions

line !l l&&!r l&&r condition
66 2 0 0 $b and $el->isa("Text::KDL::XS::Node")
78 0 0 5 builtin::blessed($node) and $node->isa("Text::KDL::XS::Node")
102 26 2 6 builtin::blessed($v) and $v->isa("Text::KDL::XS::Value")
215 16 0 0 $b && $b eq 'Text::KDL::XS::Value'
247 5 0 20 $flags & 1024 && !($flags & 768)

or 2 conditions

line l !l condition
27 1 12 $opts{'version'} // "detect"
40 2 11 builtin::blessed($tree) // ""
78 0 0 ref $node || 'scalar'

or 3 conditions

line l !l&&r !l&&!r condition
41 9 2 0 ref $tree eq "HASH" or ref $tree eq "ARRAY"
154 23 2 12 not ref $value or _is_bool_object($value)
25 0 12 not ref $value or _is_bool_object($value) or _is_value_object($value)
205 0 0 0 $b eq 'JSON::PP::Boolean' || $b eq 'Types::Serialiser::Boolean' || $b eq 'JSON::Boolean' || $b eq 'boolean' || $b eq 'Mojo::JSON::_Bool'