Condition Coverage

blib/lib/Rose/Class/MakeMethods/Generic.pm
Criterion Covered Total %
condition 71 124 57.2


and 3 conditions

line !l l&&!r l&&r condition
193 2 0 2 @_ == 1 and ref $_[0] eq 'HASH'
271 2 2 0 @_ == 1 and ref $_[0] eq 'HASH'
360 2 0 2 @_ == 1 and ref $_[0] eq 'HASH'
444 4 2 0 @_ == 1 and ref $_[0] eq 'HASH'
558 4 0 4 defined $add_implies and not ref $add_implies
561 4 0 4 defined $delete_implies and not ref $delete_implies
564 4 0 4 defined $inherit_implies and not ref $inherit_implies
704 10 58 144 exists $$cache[1]{$key} && $$cache[0]{$key} != 3
709 8 0 68 exists $$cache[1]{$key} && $$cache[0]{$key} != 3
725 70 0 2 @_ == 1 and ref $_[0] eq 'HASH'
778 66 72 90 $test_class->isa($class) and $test_class ne $class
823 30 0 52 exists $$cache[1]{$attr} and $$cache[0]{$attr} != 3
843 62 0 66 $test_class->isa($class) and exists $$test_cache[1]{$attr}
62 20 46 $test_class->isa($class) and exists $$test_cache[1]{$attr} and $$test_cache[0]{$attr} == 2

or 2 conditions

line l !l condition
29 2 5 $$args{'interface'} || 'get_set'
71 0 2 $$args{'interface'} || 'get_set'
119 0 4 $$args{'interface'} || 'get_set'
181 12 2 $$args{'interface'} || 'get_set'
323 14 2 $$args{'interface'} || 'get_set'
552 0 8 $$args{'interface'} || 'all'
574 0 0 $Inherited_Hash{$name}{$class}[1] ||= []
142 0 $Inherited_Hash{$name}{$class}[1] ||= []
578 84 18 $Inherited_Hash{$name}{$class}[1] ||= []
627 0 0 $Inherited_Hash{$name}{$class}[1] ||= []
96 0 $Inherited_Hash{$name}{$class}[1] ||= []
647 194 0 $Inherited_Hash{$name}{$class}[1] ||= []
703 212 0 $Inherited_Hash{$name}{$class}[1] ||= []
722 66 6 $Inherited_Hash{$name}{$class}[1] ||= []
816 72 0 $Inherited_Hash{$name}{$class}[1] ||= []
841 128 0 $Inherited_Hash{$name}{$test_class}[1] ||= []
866 14 0 $Inherited_Hash{$name}{$class}[1] ||= []

or 3 conditions

line l !l&&r !l&&!r condition
41 0 0 2 $$args{'init_method'} || "init_$name"
180 12 2 0 $$args{'hash_key'} || $name
322 14 2 0 $$args{'hash_key'} || $name
537 0 8 0 $$args{'plural_name'} || $name . 's'
540 0 8 0 $$args{'get_set_all_method'} || $$args{'hash_method'} || $plural_name
541 4 4 0 $$args{'keys_method'} || $name . '_keys'
542 0 8 0 $$args{'cache_method'} || $plural_name . '_cache'
543 4 4 0 $$args{'exists_method'} || $$args{'exists_method'} || $name . '_exists'
544 0 8 0 $$args{'add_method'} || 'add_' . $name
545 0 8 0 $$args{'adds_method'} || 'add_' . $plural_name
546 0 8 0 $$args{'delete_method'} || 'delete_' . $name
547 0 8 0 $$args{'deletes_method'} || 'delete_' . $plural_name
548 0 8 0 $$args{'clear_method'} || 'clear_' . $plural_name
549 0 8 0 $$args{'inherit_method'} || 'inherit_' . $name
550 0 8 0 $$args{'inherits_method'} || 'inherit_' . $plural_name
569 0 0 244 ref $_[0] || $_[0]