| blib/lib/Role/Inspector.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 20 | 55 | 36.3 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 52 | 1 | 0 | 8 | $$info{'provides'} && $$info{'requires'} |
| 0 | 8 | 1 | $$info{'api'} and not $$info{'provides'} && $$info{'requires'} | |
| 95 | 0 | 0 | 0 | blessed $attr && $attr->can('is') |
| 96 | 0 | 0 | 0 | blessed $attr && $attr->can('name') |
| 107 | 0 | 0 | 0 | blessed $attr and $attr->can('_canonicalize_handles') |
| 255 | 5 | 0 | 0 | ref $thing and not blessed $thing |
| 259 | 3 | 0 | 2 | $thing->can('does') and $thing->does($role) |
| 260 | 0 | 2 | 1 | $thing->can('DOES') and $thing->DOES($role) |
| 291 | 1 | 0 | 0 | $INC{'Moose.pm'} and Moose::Util::find_meta($thing) |
| 298 | 1 | 0 | 0 | $INC{'Mouse.pm'} and Mouse::Util::find_meta($thing) |
| line | l | !l | condition |
|---|---|---|---|
| 62 | 0 | 1 | $$info{'provides'} ||= \@provides |
| 63 | 0 | 1 | $$info{'requires'} ||= \@requires |
| 68 | 0 | 0 | $$info{'provides'} ||= [] |
| 69 | 0 | 0 | $$info{'requires'} ||= [] |
| 284 | 1 | 0 | $me->get_role_info($thing) || {'type', ''} |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 257 | 0 | 10 | 0 | ref $_ or use_package_optimistically $_ |
| 265 | 1 | 1 | 0 | $$info{'type'} eq 'Role::Tiny' or $$info{'type'} eq 'Moo::Role' |
| 286 | 0 | 1 | 0 | $$info2{'type'} eq 'Role::Tiny' or $$info2{'type'} eq 'Moo::Role' |
| 291 | 0 | 0 | 1 | $$info2{'type'} eq 'Moose::Role' or $INC{'Moose.pm'} and Moose::Util::find_meta($thing) |
| 298 | 0 | 0 | 1 | $$info2{'type'} eq 'Mouse::Role' or $INC{'Mouse.pm'} and Mouse::Util::find_meta($thing) |