Branch Coverage

blib/lib/HTML/HTML5/Entities.pm
Criterion Covered Total %
branch 27 36 75.0


line true false branch
2516 4 1 if (defined wantarray) { }
2536 3 5 if (defined $2) { }
0 5 elsif (defined $3) { }
2541 0 5 unless $entity2char{$4}
2545 0 5 wantarray ? :
2551 0 2 unless $_[1]
2561 0 2 if (defined $2) { }
0 2 elsif (defined $3) { }
1 1 elsif (defined $_[2] and $_[2]) { }
2566 1 0 unless $map{$4}
2568 1 0 unless $map{$4}
2581 1 2 if defined $$map{$ent}
2593 0 7 unless defined $_[0]
2596 6 1 if (defined wantarray) { }
2606 2 5 defined $_[1] ? :
2607 6 1 ref $unsafe_characters eq 'Regexp' ? :
2611 5 5 unless $char2entity{$1}
2624 1 4 $hex ? :