blib/lib/Class/Class.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 14 | 47 | 29.7 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
137 | 5 | 0 | 2 | package_exists $class and $class->can('import') |
159 | 1 | 1 | 3 | $class ne ref $self and $class =~ s/::[^:]+$//o |
177 | 2 | 0 | 0 | defined $glob and defined *{$glob;}{'CODE'} |
282 | 1 | 0 | 0 | defined $_[1] and not UNIVERSAL::isa($_[1], $type) |
296 | 1 | 0 | 0 | defined $_[1] and not UNIVERSAL::isa($_[1], $type) |
329 | 0 | 0 | 0 | defined $glob and defined *{$glob;}{'CODE'} |
line | l | !l | condition |
---|---|---|---|
222 | 0 | 0 | $_[0]{$name} ||= [] |
229 | 0 | 0 | $_[0]{$name} ||= [] |
236 | 0 | 0 | $_[0]{$name} ||= {} |
243 | 0 | 0 | $_[0]{$name} ||= {} |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
45 | 0 | 4 | 0 | ref $this || $this |
109 | 1 | 0 | 7 | $self->isa($class) or $self->__tried_polymorph($class) |
205 | 0 | 33 | 0 | ref $this || $this |
251 | 0 | 0 | 0 | $_[0]{$name} ||= *{&Symbol::gensym();} |
257 | 0 | 0 | 0 | $_[0]{$name} ||= *{&Symbol::gensym();} |
288 | 0 | 1 | 0 | $_[0]{$name} ||= $type->new |
302 | 0 | 1 | 0 | $_[0]{$name} ||= $type->new |