| blib/lib/Mock/Sub/Child.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 28 | 34 | 82.3 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 27 | 7 | 6 | 60 | $_[0] and $_[0] =~ /::/ |
| 33 | 60 | 10 | 3 | $caller ne 'Mock::Sub::mock' and $sub_passed_in |
| 35 | 0 | 2 | 1 | ref $self eq 'Mock::Sub::Child' and not $self->{'name'} |
| 41 | 60 | 11 | 1 | $caller ne 'Mock::Sub::mock' and $caller ne 'Mock::Sub::Child::remock' |
| 56 | 2 | 0 | 1 | defined &$core_sub and ${^GLOBAL_PHASE} eq 'START' |
| 116 | 2 | 1 | 65 | !wantarray && @{$mock->{'return'};} == 1 |
| 134 | 11 | 0 | 64 | defined $self->{'orig'} and not $sub =~ /CORE::GLOBAL/ |
| 176 | 115 | 23 | 4 | defined $_[1] and ref $_[1] ne 'CODE' |
| line | l | !l | condition |
|---|---|---|---|
| 31 | 73 | 0 | (caller 1)[3] || '' |
| 149 | 26 | 7 | (shift())->{'called_count'} || 0 |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 46 | 11 | 60 | 0 | $self->name || shift() |
| 70 | 65 | 0 | 6 | exists &$sub or $sub =~ /CORE::GLOBAL/ |