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