| blib/lib/Mock/Sub/Child.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 26 | 31 | 83.8 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 27 | 4 | 5 | 55 | $_[0] and $_[0] =~ /::/ |
| 33 | 55 | 6 | 3 | $caller ne 'Mock::Sub::mock' and $sub_passed_in |
| 35 | 0 | 2 | 1 | ref $self eq 'Mock::Sub::Child' and not $self->{'name'} |
| 51 | 2 | 0 | 1 | defined &$core_sub and ${^GLOBAL_PHASE} eq 'START' |
| 109 | 2 | 1 | 64 | !wantarray && @{$mock->{'return'};} == 1 |
| 124 | 9 | 0 | 60 | defined $self->{'orig'} and not $sub =~ /CORE::GLOBAL/ |
| 166 | 102 | 23 | 4 | defined $_[1] and ref $_[1] ne 'CODE' |
| line | l | !l | condition |
|---|---|---|---|
| 31 | 56 | 8 | (caller 1)[3] || '' |
| 139 | 26 | 7 | (shift())->{'called_count'} || 0 |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 41 | 8 | 55 | 0 | $self->name || shift() |
| 65 | 59 | 0 | 4 | exists &$sub or $sub =~ /CORE::GLOBAL/ |