blib/lib/Class/Std/Fast.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 31 | 47 | 65.9 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
98 | 0 | 1 | 0 | $flags{'constructor'} eq 'basic' and $flags{'cache'} |
0 | 0 | 1 | $flags{'constructor'} eq 'basic' and not $flags{'cache'} | |
118 | 30 | 0 | 0 | @_ == 2 && $_[1] >= 2 |
228 | 30 | 13 | 0 | $#_ and ref $_[1] ne 'HASH' |
262 | 80 | 3 | 50 | defined $$attr_ref{'init_arg'} and exists $$arg_set{$$attr_ref{'init_arg'}} |
line | l | !l | condition |
---|---|---|---|
71 | 0 | 0 | $_[1] || 1 |
85 | 0 | 1 | $object_cache_of{$_[0]} ||= [] |
134 | 1 | 63 | *{$target;}{'CODE'} || sub { return @_[2 .. $#_]; } |
181 | 9 | 8 | $name || $init_arg || $getter || $setter || '????' |
215 | 0 | 0 | pop @{$object_cache_of{$_[0]};} || bless(\(my $anon_scalar = $instance_counter++), $_[0]) |
233 | 1 | 42 | exists $do_cache_class_of{$_[0]} && pop @{$object_cache_of{$_[0]};} || bless(\(my $another_anon_scalar = $instance_counter++), $_[0]) |
237 | 13 | 30 | $_[1] ||= {} |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
172 | 19 | 8 | 10 | Class::Std::_extract_init_arg($config) || $name |
173 | 22 | 7 | 8 | Class::Std::_extract_get($config) || $name |
176 | 7 | 7 | 23 | Class::Std::_extract_set($config) || $name |
397 | 14893 | 1 | 0 | ref $invocant or $invocant |
14842 | 0 | 0 | ref $invocant or $invocant | |
51 | 1 | 0 | ref $invocant || $invocant |