Condition Coverage

blib/lib/MIME/Charset.pm
Criterion Covered Total %
condition 43 99 43.4


and 3 conditions

line !l l&&!r l&&r condition
459 27 55 0 $m eq 'EXTENDED' and $mapping ne 'EXTENDED'
667 0 4 0 $charset and $charset->{'InputCharset'}
807 4 6 0 $encoding eq 'S' and &_resolve_S($s) eq 'Q'
896 0 8 0 $charset and $charset->{'InputCharset'}
951 0 12 0 $replacement && $replacement =~ /^\d+$/
964 0 0 0 $replacement eq 'FALLBACK' and $FALLBACK_CHARSET

or 2 conditions

line l !l condition
449 78 62 shift() || ''
707 4 10 shift() || 0
769 0 10 shift() || 0
951 0 12 {'CROAK', &FB_CROAK(), 'STRICT', &FB_CROAK(), 'FALLBACK', &FB_CROAK(), 'PERLQQ', &FB_PERLQQ(), 'HTMLCREF', &FB_HTMLCREF(), 'XMLCREF', &FB_XMLCREF()}->{$replacement or ''} || 0
956 12 0 $charset->{'InputCharset'} || ''
12 0 $charset->{'OutputCharset'} || ''
1027 0 0 shift() || 0
1152 0 0 uc shift() || undef
1153 0 0 uc shift() || undef

or 3 conditions

line l !l&&r !l&&!r condition
405 0 0 70 $params{'Mapping'} || $MIME::Charset::Config->{'Mapping'}
417 60 5 0 &resolve_alias($charset) || $charset
419 23 47 0 $CHARSET_ALIASES{uc $charset} || uc $charset
436 8 62 0 $outcset || $charset
8 61 1 $encoder || $decoder
472 37 17 1 $encoder ||= &Encode::find_encoding($charset)
673 0 0 4 $enc || $encoded =~ /\x00/
771 6 0 4 &is_utf8($s) or $s =~ /[^\x00-\xFF]/
796 6 0 2 shift() || $self->{'HeaderEncoding'}
902 6 0 2 $enc || $encoded =~ /$NON7BITRE/x
918 0 0 12 $params{'Replacement'} || $MIME::Charset::Config->{'Replacement'}
919 0 0 12 $params{'Detect7bit'} || $MIME::Charset::Config->{'Detect7bit'}
921 0 0 12 $params{'Encoding'} || (exists $params{'Encoding'} ? undef : 'A')
923 0 0 12 not $encoding or $encoding ne 'A'
936 0 0 12 not $encoding or $encoding ne 'A'
956 0 0 12 &is_utf8($s) or $s =~ /[^\x00-\xFF]/
0 4 8 &is_utf8($s) or $s =~ /[^\x00-\xFF]/ or ($charset->{'InputCharset'} || '') ne ($charset->{'OutputCharset'} || '')
1157 0 0 0 not $henc or $henc =~ /^[BQS]$/
1158 0 0 0 not $benc or $benc =~ /^[BQ]$/
1160 0 0 0 $henc or $benc
0 0 0 $henc or $benc or $cset