Branch Coverage

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


line true false branch
2516 5 1 if (defined wantarray) { }
2536 3 8 if (defined $2) { }
0 8 elsif (defined $3) { }
2541 0 8 unless $entity2char{"$4;"}
2545 0 6 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 8 unless defined $_[0]
2596 7 1 if (defined wantarray) { }
2606 3 5 defined $_[1] ? :
2607 7 1 ref $unsafe_characters eq 'Regexp' ? :
2611 5 8 unless $char2entity{$1}
2624 1 4 $hex ? :