blib/lib/Class/Tiny/Antlers.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 31 | 51 | 60.7 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
80 | 0 | 0 | 8 | $stash->{$name} and defined &{$stash->{$name};} |
119 | 0 | 31 | 0 | defined $attr and ref $attr eq 'ARRAY' |
160 | 20 | 9 | 2 | defined $lazy and not $lazy |
169 | 27 | 1 | 1 | $required and 'Class::Tiny::Object'->can('new') == $caller->can('new') |
174 | 1 | 2 | 25 | $init_arg and ref $init_arg eq 'SCALAR' |
3 | 0 | 25 | $init_arg and ref $init_arg eq 'SCALAR' and not defined $$init_arg | |
184 | 11 | 9 | 6 | defined $default and ref $default eq 'CODE' |
291 | 0 | 0 | 0 | $type->can('can_be_inlined') and $type->can_be_inlined |
line | l | !l | condition |
---|---|---|---|
126 | 19 | 12 | $CLASS_ATTRIBUTES{$caller}{$attr}{'is'} ||= 'ro' |
127 | 9 | 8 | $CLASS_ATTRIBUTES{$caller}{$attr}{'lazy'} ||= 1 |
135 | 19 | 12 | delete $spec{'is'} || 'rw' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
129 | 0 | 0 | 31 | not defined $attr or ref $attr |
0 | 0 | 31 | not defined $attr or ref $attr or not $attr =~ /^[^\W\d]\w*$/s | |
143 | 0 | 0 | 31 | $spec{'isa'} or $spec{'coerce'} |
148 | 0 | 0 | 0 | $spec{'isa'}->can('coerce') or not $spec{'coerce'} |
174 | 1 | 1 | 1 | not $init_arg or $init_arg ne $attr |
196 | 6 | 6 | 1 | $is eq 'ro' or $is eq 'rwp' |
309 | 0 | 0 | 0 | $type->can('inline_check') || $type->can('_inline_check') |