Branch Coverage

blib/lib/Encode/Wide.pm
Criterion Covered Total %
branch 31 40 77.5


line true false branch
113 0 24 unless (defined $string)
121 9 15 if (ref $string eq "SCALAR")
149 0 514 exists $entity_map{$cp} ? :
156 22 2 unless ($params->{'keep_hrefs'})
165 13 445 exists $entity_map{$cp} ? :
189 22 2 unless ($params->{'keep_apos'})
206 2 569 exists $entity_map{$cp} ? :
211 18 6 unless ($string =~ /[^[:ascii:]]/)
423 1 5 if ($string =~ /[^[:ascii:]]/)
425 0 1 if ($string =~ /[^[:ascii:]]/)
433 0 0 if $complain
457 0 24 unless (defined $string)
465 9 15 if (ref $string eq "SCALAR")
496 0 514 exists $entity_map{$cp} ? :
503 22 2 unless ($params->{'keep_hrefs'})
515 13 445 exists $entity_map{$cp} ? :
591 0 611 exists $entity_map{$cp} ? :
595 18 6 unless ($string =~ /[^[:ascii:]]/)
798 1 5 if ($string =~ /[^[:ascii:]]/)
807 0 1 if $complain