Condition Coverage

blib/lib/Template/Pure.pm
Criterion Covered Total %
condition 68 82 82.9


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 138 50 0 &Scalar::Util::blessed($value_proto) and $value_proto->isa('Template::Pure') || $value_proto->can('TO_HTML')
401 156 5 6 $first_open >= 0 and $first_open < $first_pipe
156 1 4 $first_open >= 0 and $first_pipe == -1
416 6 1 3 &Scalar::Util::blessed($parts[-1]) and index("$parts[-1]", '|') > 0
592 0 0 3 &Scalar::Util::blessed($sub_data_action) and $sub_data_action->isa(ref $self)
713 240 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 180 $match_specs{$_[1]} ||= {Template::Pure::ParseUtils::parse_match_spec($_[1])}
232 64 111 $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 234 ref $directive or !1
298 75 158 ref $action_proto || ''
51 158 ref $action_proto || ''
34 158 ref $action_proto || ''
319 44 135 ref $value_proto || ''
42 135 ref $value_proto || ''
383 13 0 ref $action_proto || ''
471 10 108 ref $directives[0] || ''
758 4 1 $dom->attr($attr) || ''
769 1 0 $dom->attr($attr) || ''
786 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')
401 6 0 161 $first_open >= 0 and $first_open < $first_pipe or $first_open >= 0 and $first_pipe == -1
730 2 2 5 $mode eq 'append' or $mode eq 'prepend'