Condition Coverage

blib/lib/JSON/Slurper.pm
Criterion Covered Total %
condition 8 33 24.2


and 3 conditions

line !l l&&!r l&&r condition
74 0 0 0 $auto_ext and not +(File::Basename::fileparse($filename, qr/\.[^.]*/mx))[2]
80 0 0 0 $wantarray and my $ref = ref $slurped
98 0 0 0 $self->[1] and not +(File::Basename::fileparse($filename, qr/\.[^.]*/mx))[2]
103 0 0 0 $wantarray and my $ref = ref $slurped
127 0 0 0 $auto_ext and not +(File::Basename::fileparse($filename, qr/\.[^.]*/mx))[2]
138 0 0 0 $self->[1] and not +(File::Basename::fileparse($filename, qr/\.[^.]*/mx))[2]
148 5 1 4 &Scalar::Util::blessed($encoder) and $encoder->can('encode')
6 1 3 &Scalar::Util::blessed($encoder) and $encoder->can('encode') and $encoder->can('decode')

or 3 conditions

line l !l&&r !l&&!r condition
42 1 1 0 $DEFAULT_ENCODER ||= $class->_build_default_encoder
65 0 0 0 $DEFAULT_ENCODER ||= $class->_build_default_encoder
124 0 0 0 $DEFAULT_ENCODER ||= $class->_build_default_encoder