Branch Coverage

lib/Oryx/Class.pm
Criterion Covered Total %
branch 10 68 14.7


line true false branch
197 18 0 if $@
204 0 0 unless defined $PARSER
227 0 0 if $DEBUG
262 0 50 if $DEBUG > 1
264 6 44 if ($class eq 'Oryx::Class' and defined $param{'auto_deploy'})
268 0 26 if $class eq 'Oryx::Class' or $class eq 'Oryx::MetaClass' or $class =~ /Oryx::[^:]+::Class/
272 0 26 if (${$class . '::__initialized';})
273 0 0 if $DEBUG > 1
277 0 26 if (can($class, 'storage') and $class->storage) { }
278 0 0 if (%Orphans)
280 0 0 if $DEBUG > 1
287 0 26 if $DEBUG
289 20 6 if defined $param{'auto_deploy'}
296 0 0 if $DEBUG
305 0 0 if (isa($_, 'Oryx::Class') and $_ ne 'Oryx::Class' and not $_ =~ /Oryx::[^:]+::Class/)
313 0 0 unless ($schema = ${$class . '::schema';})
316 0 0 if $@
319 0 0 if ($schema)
320 0 0 if defined $$schema{'name'}
331 0 0 if ($class->auto_deploy or $param{'auto_deploy'})
332 0 0 unless ($class->storage->util->table_exists($class->dbh, $class->table))
337 0 0 if ($param{'dont_cache'})
348 0 0 if @_
368 0 0 if $object = $Live_Objects{$key}
377 0 0 if $DEBUG
379 0 0 unless $object->dont_cache
465 0 0 unless (defined $class->meta->{'table'})
480 0 0 if $name
481 0 0 unless (defined $class->getMetaAttribute('name'))
524 0 0 unless ($Oryx::Class::XML_DOM_Lite_Is_Available)
530 0 0 if ($stream) { }
540 0 0 unless $fh
565 0 0 ref $_[0] ? :
570 0 0 ref $_[0] ? :