Branch Coverage

blib/lib/Test/Mockify.pm
Criterion Covered Total %
branch 51 54 94.4


line true false branch
62 27 87 unless ($FakeModulePath->can($AlternativeConstructorName))
63 1 26 if (defined $aFakeParams) { }
69 80 33 $aFakeParams ? :
81 160 113 unless $ModulePath
88 792 113 unless $MockedSelf
162 66 0 if ($ParameterAmount == 1 and IsString($Parameters[0])) { }
223 18 78 if ($self->{'IsStaticMockStore'}{$MethodName}) { }
13 65 elsif ($self->{'IsImportedMockStore'}{$MethodName}) { }
236 5 20 if ($self->{'IsStaticMockStore'}{$MethodName}) { }
5 15 elsif ($self->{'IsImportedMockStore'}{$MethodName}) { }
251 69 10 unless ($self->{'MethodStore'}{$MethodName})
252 1 68 if ($self->{'MockStaticModule'}) { }
261 15 67 wantarray ? :
275 16 122 if ($WantAList) { }
282 19 119 if ($@)
285 16 103 if ($WantAList) { }
302 1 55 if $MustUseShift
306 1 55 wantarray ? :
317 22 2 unless ($self->{'MethodStore'}{$MethodName})
321 1 21 if (not $MethodName =~ qr/::/ms) { }
350 0 38 unless ref $Sub eq 'CODE'
353 33 5 if (defined $Prototype)
355 0 33 if $@
374 16 2 unless ($self->{'MethodStore'}{$MethodName})
394 1 19 if (ref $aParametersFromAllCalls ne 'ARRAY')
397 1 18 if (scalar @{$aParametersFromAllCalls;} < $Position) { }
419 2 121 if ($self->{'MethodMockType'}{$MethodName} and $self->{'MethodMockType'}{$MethodName} ne $MethodMockType) { }