Branch Coverage

blib/lib/POE/Declare/Object.pm
Criterion Covered Total %
branch 22 56 39.2


line true false branch
55 0 12 if ($POE::Declare::META{$class})
60 10 2 if ($name eq 'Event')
69 2 0 if ($name =~ /^Timeout\b/)
70 0 2 unless ($name =~ /^Timeout\((.+)\)$/)
75 2 0 if (defined &Params::Util::_STRING($delay))
76 0 2 if ($delay =~ /^(.+?)\+\-(.+?)\z/)
81 0 2 unless (&Params::Util::_POSINT($delay))
149 0 4 if (exists $param{'Alias'}) { }
150 0 0 unless (&Params::Util::_STRING($param{'Alias'}))
160 10 2 unless exists $param{$_}
165 2 2 if (%param)
172 0 0 unless exists $$self{$_}
187 0 0 if &Params::Util::_CODE($it)
193 0 0 if (&Params::Util::_ARRAY0($it) and scalar @$it == 2 and _ALIAS($$it[0]) and &Params::Util::_IDENTIFIER($$it[1]))
217 0 0 defined &Params::Util::_STRING($_[0]) && $_[0] =~ /\.\d+$/ ? :
0 0 unless &Params::Util::_IDENTIFIER($_[0])
269 0 2 unless (ref $_[0])
327 2 6 unless my $id = $ID{&Scalar::Util::refaddr($_[0])}
328 0 6 unless $POE::Declare::Object::poe_kernel->ID_id_to_session($id)
443 0 2 unless ($name)
449 0 2 unless ($attr and $attr->isa('POE::Declare::Meta::Event'))
536 0 0 unless $_[0]{$_[1]}
638 0 2 if (defined $POE::Declare::Object::poe_kernel->alias_resolve($alias))
641 0 2 if ($POE::Declare::Object::poe_kernel->alias_set($alias))
709 1 0 unless ($self_id)
714 0 0 unless ($session)
725 0 0 unless ($session_id == $current_id)
733 0 0 unless ($session_id == $self_id)