Branch Coverage

blib/lib/Basset/NotificationCenter.pm
Criterion Covered Total %
branch 20 40 50.0


line true false branch
228 0 149 unless $class->can('center')
230 145 4 if (my $center = $class->center)
245 0 0 if (defined $l)
343 0 139 ref $self ? :
0 139 unless $self = ref $self ? $self : $self->new
347 0 139 unless defined $args{'object'}
348 0 139 unless defined $args{'notification'}
356 70 69 if (my $observableObjects = $$observers{$args{'notification'}})
359 71 1 if (defined $object and $object eq $args{'object'} or $object eq 'all')
456 0 5 ref $self ? :
0 5 unless $self = ref $self ? $self : $self->new
460 0 5 unless defined $init{'method'}
461 0 5 unless defined $init{'observer'}
462 0 5 unless defined $init{'notification'}
570 0 5 ref $self ? :
0 5 unless $self = ref $self ? $self : $self->new
574 0 5 unless defined $init{'observer'}
575 0 5 unless defined $init{'notification'}
631 0 0 ref $self ? :
0 0 unless $self = ref $self ? $self : $self->new