| blib/lib/Data/Polymorph.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 12 | 18 | 66.6 |
| line | l | !l | condition |
|---|---|---|---|
| 225 | 0 | 0 | $self->_dic->{$type} || [] |
| 270 | 6 | 1 | $self->class_methods->{$method} ||= [] |
| 353 | 21 | 2 | $self->class_methods->{$method} ||= [] |
| 362 | 11 | 0 | $self->class_methods->{$method} ||= [] |
| 475 | 18 | 1 | $self->method($obj, $method) || sub { confess(sprintf('method "%s" is not defined in %s', $method, $self->class($obj))); } |
| 485 | 17 | 1 | $self->super_method($obj, $method) || sub { confess(sprintf('method "SUPER::%s" is not defined in %s', $method, $self->class($obj))); } |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 148 | 0 | 3 | 0 | blessed $self || $self |
| 394 | 10 | 0 | 1 | $self->class_method($class, $method) || $self->type_method($type, $method) || $self->runs_native && UNIVERSAL::can($obj, $method) |