| blib/lib/Role/Inspector.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 36 | 55 | 65.4 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 52 | 1 | 0 | 16 | $info->{'provides'} && $info->{'requires'} |
| 18 | 16 | 1 | $info->{'api'} and not $info->{'provides'} && $info->{'requires'} | |
| 103 | 5 | 0 | 16 | &blessed($attr) && $attr->can('is') |
| 104 | 5 | 0 | 16 | &blessed($attr) && $attr->can('name') |
| 115 | 5 | 16 | 0 | &blessed($attr) and $attr->can('_canonicalize_handles') |
| 290 | 25 | 0 | 0 | ref $thing and not &blessed($thing) |
| 294 | 15 | 0 | 10 | $thing->can('does') and $thing->does($role) |
| 295 | 0 | 10 | 5 | $thing->can('DOES') and $thing->DOES($role) |
| 326 | 2 | 0 | 2 | $INC{'Moose.pm'} and Moose::Util::find_meta($thing) |
| 333 | 4 | 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 |
| 69 | 18 | 0 | $info->{'provides'} ||= [] |
| 70 | 18 | 0 | $info->{'requires'} ||= [] |
| 319 | 6 | 0 | $me->get_role_info($thing) || {'type', ''} |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 292 | 0 | 50 | 0 | ref $_ or &use_package_optimistically($_) |
| 300 | 3 | 2 | 5 | $info->{'type'} eq 'Role::Tiny' or $info->{'type'} eq 'Moo::Role' |
| 321 | 1 | 2 | 3 | $info2->{'type'} eq 'Role::Tiny' or $info2->{'type'} eq 'Moo::Role' |
| 326 | 2 | 2 | 2 | $info2->{'type'} eq 'Moose::Role' or $INC{'Moose.pm'} and Moose::Util::find_meta($thing) |
| 333 | 1 | 0 | 4 | $info2->{'type'} eq 'Mouse::Role' or $INC{'Mouse.pm'} and Mouse::Util::find_meta($thing) |