Branch Coverage

blib/lib/HTML/EasyTags.pm
Criterion Covered Total %
branch 59 62 95.1


line true false branch
363 16 48 unless ($what_to_make =~ /^($TAG_GROUP|$TAG_PAIR|$TAG_START|$TAG_END|$TAG_MINI)$/)
365 1 15 if ($$self{$KEY_AUTO_GROUP}) { }
381 5 59 if ($what_to_make eq $TAG_GROUP)
455 1 0 unless ref $clone eq ref $self
484 4 2 if (defined(my $new_value = shift @_))
508 1 10 if (defined(my $new_value = shift @_))
532 1 2 ref $_[0] eq 'ARRAY' ? :
533 2 1 if (scalar @text <= 1) { }
570 53 30 unless defined $text
576 66 17 ref $rh_params eq 'HASH' ? :
580 31 52 unless ($what_to_make =~ /^($TAG_PAIR|$TAG_START|$TAG_END|$TAG_MINI)$/)
581 9 22 $NO_PAIR_TAGS{$tag_name} ? :
586 16 67 if ($what_to_make eq $TAG_END)
600 1 17 if $NO_VALUE_PARAMS{$param} and not $tag_params{$param}
610 11 56 if ($what_to_make eq $TAG_MINI)
616 31 25 if ($what_to_make eq $TAG_START)
663 15 12 ref $rh_params eq 'HASH' ? :
676 34 14 unless (ref $ra_values eq 'ARRAY')
680 11 3 if ($#{$ra_values;} > $max_tag_ind)
722 5 39 if $NO_VALUE_PARAMS{$param} and not $tag_params{$param}[$index]
733 30 17 defined $$ra_text[$index] ? :
737 18 29 if ($NO_PAIR_TAGS{$tag_name}) { }
749 4 23 $force_list ? :
787 0 8 ref $ra_head eq 'ARRAY' ? :
4 4 $rh_frameset ? :
813 1 1 $is_frameset ? :
834 33 31 unless @{$ra_params_in;}
837 4 27 if (ref $$ra_params_in[0] eq 'HASH') { }
22 5 elsif (@{$ra_params_in;} == 1) { }
839 0 4 if @{$ra_params_in;} > 1
850 5 13 if substr($key, 0, 1) eq '-'