blib/lib/Eixo/Base/Singleton.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 14 | 18 | 77.7 |
line | true | false | branch |
---|---|---|---|
13 | 3 | 8 | if defined &{$clase . '::SINGLETON';} |
27 | 28 | 0 | if (my $method = $instance->can('__' . $attribute)) { } |
38 | 8 | 0 | if ($instance->can('initialize')) |
43 | 5 | 3 | unless ($instance->can('DESTROY')) |
55 | 2 | 8 | $class->can('SINGLETON') ? : |
57 | 2 | 8 | if ($self) { } |
67 | 8 | 0 | if $self->can('__initialize') |
83 | 21 | 0 | unless (defined &{$class . '::__' . $attribute;}) |
89 | 7 | 21 | if (defined $value) { } |