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
470 27 55 0 $m eq "EXTENDED" and $mapping ne "EXTENDED"
678 0 0 4 $charset and $charset->{'InputCharset'}
818 4 6 0 $encoding eq "S" and &_resolve_S($s) eq "Q"
907 0 0 8 $charset and $charset->{'InputCharset'}
962 0 12 0 $replacement && $replacement =~ /^\d+$/
975 0 0 0 $replacement eq "FALLBACK" and $FALLBACK_CHARSET

or 2 conditions

line l !l condition
460 78 62 shift() || ''
718 4 10 shift() || 0
780 0 10 shift() || 0
962 0 12 {'CROAK', &FB_CROAK(), 'STRICT', &FB_CROAK(), 'FALLBACK', &FB_CROAK(), 'PERLQQ', &FB_PERLQQ(), 'HTMLCREF', &FB_HTMLCREF(), 'XMLCREF', &FB_XMLCREF()}->{$replacement or ''} || 0
967 12 0 $charset->{'InputCharset'} || ''
12 0 $charset->{'OutputCharset'} || ''
1038 0 0 shift() || 0
1163 0 0 uc shift() || undef
1164 0 0 uc shift() || undef

or 3 conditions

line l !l&&r !l&&!r condition
410 0 70 0 $params{'Mapping'} || $MIME::Charset::Config->{'Mapping'}
428 60 4 0 &resolve_alias($charset) || $charset
430 23 47 0 $CHARSET_ALIASES{uc $charset} || uc $charset
447 8 62 0 $outcset || $charset
8 61 1 $encoder || $decoder
483 37 17 1 $encoder ||= &Encode::find_encoding($charset)
684 0 0 4 $enc || $encoded =~ /\x00/
782 6 0 4 &is_utf8($s) or $s =~ /[^\x00-\xFF]/
807 6 2 0 shift() || $self->{'HeaderEncoding'}
913 6 0 2 $enc || $encoded =~ /$NON7BITRE/x
929 0 12 0 $params{'Replacement'} || $MIME::Charset::Config->{'Replacement'}
930 0 12 0 $params{'Detect7bit'} || $MIME::Charset::Config->{'Detect7bit'}
932 0 12 0 $params{'Encoding'} || (exists $params{'Encoding'} ? undef : 'A')
934 0 0 12 not $encoding or $encoding ne "A"
947 0 0 12 not $encoding or $encoding ne "A"
967 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'} || '')
1168 0 0 0 not $henc or $henc =~ /^[BQS]$/
1169 0 0 0 not $benc or $benc =~ /^[BQ]$/
1171 0 0 0 $henc or $benc
0 0 0 $henc or $benc or $cset