Branch Coverage

blib/lib/Template/Plex.pm
Criterion Covered Total %
branch 38 58 65.5


line true false branch
48 6 18 if (ref $self) { }
53 2 4 if (%opts) { }
60 2 4 $vars ? :
2 4 %opts ? :
93 0 12 if (@args == 1) { }
0 12 elsif (defined $args[1] and ref $args[1] eq 'HASH') { }
114 4 8 if (ref $self) { }
116 0 4 if ($c) { }
129 2 6 if ($c) { }
147 0 6 if (@args == 1) { }
0 6 elsif (defined $args[1] and ref $args[1] eq 'HASH') { }
166 6 0 if $template
200 22 24 if $self->[5]
202 0 24 unless ($self->isa("Template::Plex"))
234 0 24 if ($self->[1]{'package'} eq caller)
242 0 24 unless ($self->[5])
265 3 3 if (defined $data and ref $data and $data->isa('Template::Plex')) { }
267 2 1 if ($slot_name eq 'default') { }
288 0 3 unless ($parent)
293 3 0 if (@_) { }
317 0 0 if ($parent) { }
333 0 0 if ($parent) { }
353 0 2 if ($path =~ /::/)
361 0 2 if ($root)
381 24 42 unless ($self->init_done_flag)
391 20 22 if (not $top_down) { }
406 2 20 if ($self->[8] and %{$self->[8]})
408 2 0 if defined $self->[8]{'default'}
448 0 0 if $_[0][1]{'package'}