blib/lib/MouseX/Types/Enum.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 16 | 24 | 66.6 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
50 | 0 | 0 | 20 | caller() eq $child and not ref $child |
60 | 34 | 156 | 12 | exists $reserved_subs{$sub_name} and not exists $dup_allow_subs{$sub_name} |
85 | 0 | 171 | 1 | $class and $class ne $child |
127 | 23 | 26 | 18 | ref $first eq ref $second && $first->id eq $second->id |
line | l | !l | condition |
---|---|---|---|
137 | 207 | 7 | $_ENUM_METAS{$class} //= {} |
142 | 207 | 7 | $class->_enum_meta->{'enums'} //= {} |
147 | 0 | 0 | $class->_enum_meta->{'overwrite_flg'} //= {} |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
88 | 156 | 15 | 0 | $class->_enums->{$id} //= $class->new('id', $id, %args) |
111 | 4 | 0 | 0 | $class->_enums->{$id} // confess("$id is not found.") |