Branch Coverage

blib/lib/Rose/Class/MakeMethods/Set.pm
Criterion Covered Total %
branch 100 146 68.4


line true false branch
61 2 4 if defined $add_implies and not ref $add_implies
64 0 6 if defined $delete_implies and not ref $delete_implies
69 0 22 ref $_[0] ? :
71 0 22 unless defined $_[0]
74 18 4 if exists $class->$hash_method->{$_[0]}
82 14 53 unless (exists $Inheritable_Set{$name}{$class})
95 8 8 if (exists $Inheritable_Set{$name}{$subclass})
99 6 16 if exists $Inheritable_Set{$name}{$class}{$k}
108 0 67 wantarray ? :
116 0 14 if ref $class
118 0 14 if (@_)
122 0 0 unless defined wantarray
126 14 0 wantarray ? :
133 0 9 ref $_[0] ? :
134 0 9 unless @_
139 2 7 unless defined $_[0]
145 0 13 if (ref $arg eq 'HASH') { }
158 0 13 unless defined $attr
161 6 7 if ($add_implies)
177 0 4 ref $_[0] ? :
179 2 2 unless @values
187 0 4 ref $_[0] ? :
188 0 4 unless @_
196 0 6 unless defined $attr
197 0 6 unless exists $$req_hash{$attr}
201 0 6 if ($delete_implies)
218 10 8 unless $_[1] and exists $$hash{$_[1]}
219 5 3 if @_ > 2
223 0 6 if ($interface ne 'all')
291 2 2 if defined $add_implies and not ref $add_implies
294 2 2 if defined $delete_implies and not ref $delete_implies
297 2 2 if defined $inherit_implies and not ref $inherit_implies
304 112 88 if ($Inherited_Set{$name}{$class}{'meta'}{'cache_is_valid'})
307 8 104 wantarray ? :
320 106 0 if ($subclass->can($cache_method)) { }
0 0 elsif ($subclass->can($list_method)) { }
326 172 268 if $val == 3
327 84 184 unless exists $Inherited_Set{$name}{$class}{'cache'}{$attr}
337 0 0 unless exists $Inherited_Set{$name}{$class}{'cache'}{$attr}
348 6 82 unless defined $want
349 0 82 $want ? :
361 16 20 if $v == 3
364 0 8 wantarray ? :
371 0 8 if ref $class
373 0 8 if (@_)
377 0 0 unless defined wantarray
381 8 0 wantarray ? :
386 0 304 ref $_[0] ? :
387 0 304 unless defined $_[0]
389 224 80 if ($Inherited_Set{$name}{$class}{'meta'}{'cache_is_valid'})
391 158 66 exists $Inherited_Set{$name}{$class}{'cache'}{$_[0]} && $Inherited_Set{$name}{$class}{'cache'}{$_[0]} != 3 ? :
397 72 8 exists $$cache{$_[0]} && $$cache{$_[0]} != 3 ? :
404 0 62 ref $_[0] ? :
405 0 62 unless @_
412 0 70 unless defined $attr
415 22 48 if ($add_implies)
428 62 0 if ($count)
432 96 126 if ($test_class->isa($class) and $test_class ne $class)
444 0 2 ref $_[0] ? :
446 0 2 unless @values
454 0 60 ref $_[0] ? :
455 0 60 unless @_
458 6 54 unless (exists $Inherited_Set{$name}{$class})
468 0 66 unless defined $attr
470 44 22 if (exists $Inherited_Set{$name}{$class}{'cache'}{$attr} and $Inherited_Set{$name}{$class}{'cache'}{$attr} != 3)
476 26 18 if ($delete_implies)
486 44 128 if $class eq $test_class
488 40 26 if ($test_class->isa($class) and exists $Inherited_Set{$name}{$test_class}{'cache'}{$attr} and $Inherited_Set{$name}{$test_class}{'cache'}{$attr} == 2)
508 0 10 ref $_[0] ? :
509 0 10 unless @_
515 8 2 if (exists $Inherited_Set{$name}{$class}{'cache'}{$attr} and $Inherited_Set{$name}{$class}{'cache'}{$attr} == 3)
523 4 6 if ($inherit_implies)
535 0 4 if ($interface ne 'all')