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
468 27 55 0 $m eq "EXTENDED" and $mapping ne "EXTENDED"
676 0 0 4 $charset and $charset->{'InputCharset'}
816 4 6 0 $encoding eq "S" and &_resolve_S($s) eq "Q"
905 0 0 8 $charset and $charset->{'InputCharset'}
960 0 12 0 $replacement && $replacement =~ /^\d+$/
973 0 0 0 $replacement eq "FALLBACK" and $FALLBACK_CHARSET

or 2 conditions

line l !l condition
458 78 62 shift() || ''
716 4 10 shift() || 0
778 0 10 shift() || 0
960 0 12 {'CROAK', &FB_CROAK(), 'STRICT', &FB_CROAK(), 'FALLBACK', &FB_CROAK(), 'PERLQQ', &FB_PERLQQ(), 'HTMLCREF', &FB_HTMLCREF(), 'XMLCREF', &FB_XMLCREF()}->{$replacement or ''} || 0
965 12 0 $charset->{'InputCharset'} || ''
12 0 $charset->{'OutputCharset'} || ''
1036 0 0 shift() || 0
1161 0 0 uc shift() || undef
1162 0 0 uc shift() || undef

or 3 conditions

line l !l&&r !l&&!r condition
408 0 70 0 $params{'Mapping'} || $MIME::Charset::Config->{'Mapping'}
426 60 4 0 &resolve_alias($charset) || $charset
428 23 47 0 $CHARSET_ALIASES{uc $charset} || uc $charset
445 8 62 0 $outcset || $charset
8 61 1 $encoder || $decoder
481 37 17 1 $encoder ||= &Encode::find_encoding($charset)
682 0 0 4 $enc || $encoded =~ /\x00/
780 6 0 4 &is_utf8($s) or $s =~ /[^\x00-\xFF]/
805 6 2 0 shift() || $self->{'HeaderEncoding'}
911 6 0 2 $enc || $encoded =~ /$NON7BITRE/x
927 0 12 0 $params{'Replacement'} || $MIME::Charset::Config->{'Replacement'}
928 0 12 0 $params{'Detect7bit'} || $MIME::Charset::Config->{'Detect7bit'}
930 0 12 0 $params{'Encoding'} || (exists $params{'Encoding'} ? undef : 'A')
932 0 0 12 not $encoding or $encoding ne "A"
945 0 0 12 not $encoding or $encoding ne "A"
965 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'} || '')
1166 0 0 0 not $henc or $henc =~ /^[BQS]$/
1167 0 0 0 not $benc or $benc =~ /^[BQ]$/
1169 0 0 0 $henc or $benc
0 0 0 $henc or $benc or $cset