Branch Coverage

lib/UR/ModuleBase.pm
Criterion Covered Total %
branch 51 74 68.9


line true false branch
71 0 643 if ref $class
96 34 2 if $code
119 1 347733 unless $class
125 0 270807 $parent_class eq 'UR' ? :
149 41 0 wantarray ? :
172 0 0 unless $dir
202 0 0 unless $r1
205 0 0 if $r2 eq $r1
231 5 867075 unless defined wantarray
232 7314 859761 if wantarray
233 1 859760 if (@_ > 1)
332 0 5 if $function eq 'DESTROY'
334 0 5 unless ($package)
343 0 4 if (my $AUTOSUB = $class->can('AUTOSUB'))
349 0 0 if (my $subref = &$AUTOSUB($function, @_))
355 5 0 if ($autoload and not $autoload =~ /::DESTROY$/)
413 0 266 if (@_) { }
416 0 0 unless ($self->can("${msg_type}_message"))
599 1535 4509 if (@_) { }
606 1038 3471 if (defined $val) { }
271 3200 elsif (ref $self) { }
617 2581 0 if (my $super_sub = $super->can($name))
648 131 876 if (@_)
652 0 1752 if defined $ENV{$varname}
667 20 84 unless (defined $a)
681 6 171 ref $self ? :
687 0 182 if $seen{$thing}++
689 173 9 $a ? :
738 383 188 if (@_)
742 42 341 if (@_)
746 311 72 if defined $msg
749 188 195 if (my $code = $self->$check_callback)
750 188 0 if (ref $code) { }
759 383 0 if ($UR::initialized and $self->can('__signal_observers__'))
766 272 111 if (defined $msg)
767 66 206 if ($self->$should_queue_messages)
812 3 39 if ($warn_msg)