Branch Coverage

blib/lib/Rose/HTML/Object/Messages.pm
Criterion Covered Total %
branch 28 32 87.5


line true false branch
58 3 329 if ($Rose::HTML::Object::Exporter::Target_Class) { }
75 107 4113 unless ($Private{$class})
94 152 441 if @_
96 109 484 wantarray ? :
105 111 2 if defined &$const
116 4 2 wantarray ? :
131 3282 497 unless ($class->imported($name))
133 0 3282 if (exists $class->message_name_to_id_map->{$name} and $class->message_name_to_id_map->{$name} != $id)
140 2 3280 if (exists $class->message_id_to_name_map->{$id} and $class->message_id_to_name_map->{$id} ne $name)
152 19 3758 unless ($class->can($name) or defined &$const)
169 3280 497 unless (exists $class->message_name_to_id_map->{$name})
188 2 107 if (@_) { }
201 2357 3754 unless defined *{$fq_name;}{"CODE"} and $name =~ /^[A-Z0-9_]+$/
206 0 3754 unless defined prototype $code and not length prototype $code
209 0 3754 if $name =~ /^(BEGIN|DESTROY|AUTOLOAD|TIE.*)$/
211 0 3754 if $Debug