Condition Coverage

blib/lib/Template/Pure.pm
Criterion Covered Total %
condition 66 80 82.5


and 3 conditions

line !l l&&!r l&&r condition
183 861 17 8 defined $params{'component_current_parent'} and $component_name
249 5 2 0 &Scalar::Util::blessed($data) and $data->isa('Template::Pure::DataContext')
319 136 50 0 &Scalar::Util::blessed($value_proto) and $value_proto->isa('Template::Pure') || $value_proto->can('TO_HTML')
399 154 5 6 $first_open >= 0 and $first_open < $first_pipe
154 1 4 $first_open >= 0 and $first_pipe == -1
414 6 1 3 &Scalar::Util::blessed($parts[-1]) and index("$parts[-1]", '|') > 0
590 0 0 3 &Scalar::Util::blessed($sub_data_action) and $sub_data_action->isa(ref $self)
711 239 95 1 &Scalar::Util::blessed($value) and $value->isa('Template::Pure::UndefObject')

or 2 conditions

line l !l condition
22 50 0 delete $args{'template'} || $class->template || die(q[Can't find a template])
23 42 8 delete $args{'directives'} || [$class->directives]
28 0 50 delete $args{'filters'} || {}
1 49 delete $args{'components'} || {}
133 8 0 $self->components->{$name} || die("No Component $name")
142 4 4 $params{'component_current_parent'}[-1] || undef
173 295 591 $params{'node'}->tag || ''
229 67 178 $match_specs{$_[1]} ||= {Template::Pure::ParseUtils::parse_match_spec($_[1])}
232 63 110 $data_specs{$_[1]} ||= {Template::Pure::ParseUtils::parse_data_spec($_[1])}
235 3 8 $data_templates{$_[1]} ||= [Template::Pure::ParseUtils::parse_data_template($_[1])]
239 0 6 $processing_instruction_specs{$_[1]} ||= [Template::Pure::ParseUtils::parse_processing_instruction($_[1])]
243 8 9 $itr_specs{$_[1]} ||= {Template::Pure::ParseUtils::parse_itr_spec($_[1])}
282 1 232 ref $directive or !1
298 75 156 ref $action_proto || ''
51 156 ref $action_proto || ''
34 156 ref $action_proto || ''
319 43 134 ref $value_proto || ''
381 13 0 ref $action_proto || ''
469 10 107 ref $directives[0] || ''
756 4 1 $dom->attr($attr) || ''
767 1 0 $dom->attr($attr) || ''
784 16 0 $filters{$name} || die("Filter $name does not exist")

or 3 conditions

line l !l&&r !l&&!r condition
20 0 50 0 ref $proto || $proto
319 7 2 41 $value_proto->isa('Template::Pure') || $value_proto->can('TO_HTML')
399 6 0 159 $first_open >= 0 and $first_open < $first_pipe or $first_open >= 0 and $first_pipe == -1
728 2 2 5 $mode eq 'append' or $mode eq 'prepend'