blib/lib/Class/Tiny/Antlers.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 31 | 42 | 73.8 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
80 | 0 | 0 | 8 | $$stash{$name} and defined &{$$stash{$name};} |
121 | 0 | 31 | 0 | defined $attr and ref $attr eq 'ARRAY' |
146 | 20 | 9 | 2 | defined $lazy and not $lazy |
159 | 27 | 1 | 1 | $required and 'Class::Tiny::Object'->can('new') == $caller->can('new') |
164 | 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 | |
174 | 11 | 9 | 6 | defined $default and ref $default eq 'CODE' |
line | l | !l | condition |
---|---|---|---|
118 | 19 | 12 | $CLASS_ATTRIBUTES{$caller}{$attr}{'is'} ||= 'ro' |
119 | 9 | 8 | $CLASS_ATTRIBUTES{$caller}{$attr}{'lazy'} ||= 1 |
133 | 19 | 12 | delete $spec{'is'} || 'rw' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
127 | 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 | |
146 | 0 | 0 | 29 | $spec{'isa'} or $spec{'coerce'} |
164 | 1 | 1 | 1 | not $init_arg or $init_arg ne $attr |
185 | 6 | 6 | 1 | $is eq 'ro' or $is eq 'rwp' |