blib/lib/Moose/Meta/Role.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 25 | 48 | 52.0 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
207 | 0 | 0 | 19 | not exists $options{'weaken'} and &blessed($meta) |
0 | 0 | 19 | not exists $options{'weaken'} and &blessed($meta) and $meta->isa("Moose::Meta::Role") | |
218 | 0 | 0 | 19 | $meta and $meta->isa("Moose::Meta::Role") |
238 | 438 | 293 | 1 | &blessed($_[0]) and not $_[0]->isa("Moose::Meta::Role::Attribute") |
293 | 2 | 436 | not &blessed($_[0]) and defined $_[0] | |
295 | 434 | 2 | not &blessed($_[0]) and defined $_[0] and $_[0] =~ /^\+(.*)/ | |
277 | 135 | 0 | 0 | @_ == 1 and &blessed($_[0]) |
404 | 1 | 0 | 500 | &blessed($role) and $role->isa("Moose::Meta::Role") |
601 | 0 | 0 | 0 | $params and %$params |
line | l | !l | condition |
---|---|---|---|
592 | 0 | 0 | $options{'roles'} || [] |
603 | 0 | 0 | delete $params->{'-alias'} || delete $params->{'alias'} || {} |
606 | 0 | 0 | delete $params->{'-excludes'} || delete $params->{'excludes'} || [] |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
176 | 0 | 1326 | 0 | Class::MOP::get_metaclass_by_name($package) || $class->SUPER::initialize($package, 'attribute_metaclass', 'Moose::Meta::Role::Attribute', %opts) |
517 | 2 | 1 | 0 | ref $options{'attributes'} eq "HASH" or throw_exception("CreateTakesHashRefOfAttributes", "params", \%options, "attribute_class", $class) |
523 | 7 | 1 | 0 | ref $options{'methods'} eq "HASH" or throw_exception("CreateTakesHashRefOfMethods", "params", \%options, "attribute_class", $class) |
529 | 1 | 1 | 0 | ref $options{'roles'} eq "ARRAY" or throw_exception("CreateTakesArrayRefOfRoles", "params", \%options, "attribute_class", $class) |
570 | 15 | 6 | 201 | $meta->isa("Moose::Meta::Class") or $meta->isa("Moose::Meta::Role") |