Branch Coverage

blib/lib/HTML/Template/Pluggable.pm
Criterion Covered Total %
branch 20 32 62.5


line true false branch
51 0 138 unless scalar @_
58 4 58 unless (scalar @_ or length $type)
59 0 4 $options->{'case_sensitive'} ? :
62 0 4 if $options->{'die_on_bad_params'} and not exists $param_map->{$param}
66 0 4 unless exists $param_map->{$param} and defined $param_map->{$param}
69 4 0 if ref $param_map->{$param} eq "HTML::Template::VAR"
73 58 76 if (not scalar @_) { }
74 0 0 unless $type eq "HASH" or ref $first and UNIVERSAL::isa($first, "HASH")
82 0 134 unless @_ % 2 == 0
91 0 134 $options->{'case_sensitive'} ? :
95 115 19 if $self->{'param_map_done'}{$param}
98 2 17 if $options->{'die_on_bad_params'} and not exists $param_map->{$param}
103 0 17 unless exists $param_map->{$param}
108 2 15 if (defined $value_type and length $value_type and $value_type eq 'ARRAY' || !(ref($value) =~ /^(CODE)|(HASH)|(SCALAR)$/) && $value->isa('ARRAY')) { }
109 0 2 unless ref $param_map->{$param} eq "HTML::Template::LOOP"
113 0 15 unless ref $param_map->{$param} eq "HTML::Template::VAR"