Branch Coverage

blib/lib/HTML/Mason/Component.pm
Criterion Covered Total %
branch 46 64 71.8


line true false branch
69 56 0 if &can_weaken()
73 64 0 if &can_weaken()
83 727 12 defined $source->comp_id ? :
96 17 722 if ($interp->use_internal_component_caches)
115 21 718 if (exists $self->{'flags'}{'inherit'}) { }
717 1 elsif ($interp->use_autohandlers) { }
116 2 19 if (defined $self->{'flags'}{'inherit'})
120 15 702 if ($self->name eq $interp->autohandler_name) { }
121 15 0 unless ($self->dir_path eq '/')
142 2 11 if $self->{'in_dynamic_subs_init'}
148 0 8 unless ref $self->{'dynamic_subs_hash'} eq 'HASH'
155 0 17 unless exists $self->{'dynamic_subs_hash'}{$key}
193 469 8 if (defined $key) { }
205 3 1 if (defined $key) { }
223 49 0 if ($self->_locate_inherited('attr', $name, \$value)) { }
233 1 1 if ($self->_locate_inherited('attr', $name, \$value)) { }
254 5 0 if ($self->_locate_inherited('methods', $name, \$method)) { }
267 1 0 if ($self->_locate_inherited('methods', $name, \$method)) { }
289 199 86 if (exists $comp->{$field}{$key})
290 124 75 if $ref
293 0 86 if ++$count > 32
307 0 0 if (exists $self->{'flags'}{$name}) { }
0 0 elsif (exists $flag_defaults{$name}) { }
324 0 566 if exists $self->{'parent_cache'}
328 24 542 if ($self->inherit_path) { }
511 31 elsif ($self->inherit_start_path) { }
329 0 24 unless $parent = $interp->load($self->inherit_path)
339 7 559 if ($interp->use_internal_component_caches)
349 739 1308 if (@_) { }
0 1308 elsif (not defined $self->{'interp'}) { }
354 739 0 if &can_weaken()
380 2 0 unless ($self->{'logger'})