| blib/lib/Object/Extend.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 16 | 26 | 61.5 |
| line | true | false | branch |
|---|---|---|---|
| 54 | 17 | 18 | unless ($eigenclass) |
| 58 | 4 | 13 | if ($class->isa('Object::Extend::_Singleton')) { } |
| 99 | 3 | 85 | blessed $ref ? : |
| 105 | 0 | 0 | defined $_ ? : |
| 114 | 0 | 35 | unless ($class) |
| 123 | 27 | 8 | if (@_ == 1) { } |
| 8 | 0 | elsif (@_ % 2 == 0) { } | |
| 129 | 0 | 35 | unless (_isa $methods, 'HASH') |
| 137 | 0 | 52 | if (not defined $name) { } |
| 0 | 52 | elsif (not $name =~ /^[a-zA-Z_]\w*$/) { } | |
| 148 | 0 | 52 | unless (_isa $method, 'CODE') |
| 166 | 0 | 1 | unless (_isa $methods, 'HASH') |
| 180 | 35 | 0 | if (%$methods) |