Branch Coverage

lib/UR/Object/View.pm
Criterion Covered Total %
branch 36 78 46.1


line true false branch
64 0 102 unless ($params->specifies_value_for('subject_class_name'))
67 0 102 unless ($params->specifies_value_for('perspective'))
71 0 102 unless ($params->specifies_value_for('toolkit'))
77 0 102 unless ($expected_class)
84 51 51 unless ($class->isa($expected_class))
90 0 51 unless $self
98 0 51 unless ($expected_class and $expected_class eq $class)
103 0 51 unless ($params->specifies_value_for('aspects'))
105 0 0 unless (@aspect_specs)
108 0 0 if (@aspect_specs == 1 and ref $aspect_specs[0] eq 'ARRAY')
114 0 0 ref $aspect_spec ? :
115 0 0 unless ($aspect)
133 46 107 if (exists $view_class_cache{$bx->id})
134 0 46 unless (defined $view_class_cache{$bx->id})
147 0 107 unless ($subject_class_name and $perspective and $toolkit)
185 133 107 if ($@ or not $subclass_meta)
190 0 107 unless ($subclass_name->isa('UR::Object::View'))
223 20 49 if ($self->_widget)
224 0 20 if ($method eq 'subject' or $method =~ /aspects/) { }
0 20 elsif ($method eq 'delete' or $method eq 'unload') { }
248 30 15 if (@aspects)
262 22 0 unless @_ == 2
266 7 23 if ($encompassing->subject eq $subject) { }
281 0 0 if $old_cb
284 0 0 unless ($aspect->delegate_view)
289 0 0 if ($aspect->delegate_view)
293 0 0 if $old_cb
312 0 0 if $@ or not $m
327 0 236 if (@_)
331 47 189 unless ($widget)
333 0 47 unless $widget
341 0 0 ref $_[0] ? :
351 3 44 unless defined $subject
354 44 0 unless ($observer_data)
358 0 44 unless $self->_observer_data == $observer_data
361 0 44 if $observer_data->{$subject}
370 3 41 unless $subject
389 0 0 ref $_[0] ? :
395 0 0 ref $_[0] ? :