Branch Coverage

blib/lib/Test/DeepMock.pm
Criterion Covered Total %
branch 26 34 76.4


line true false branch
132 2 6 if (defined $package_config->{'source'}) { }
1 5 elsif (defined $package_config->{'file_handle'}) { }
3 2 elsif (defined $package_config->{'path'} or defined $path_to_mocks) { }
2 0 elsif (ref $default_handler eq 'CODE') { }
140 1 2 defined $package_config->{'path'} ? :
142 3 0 unless open $FH, "< $mock_path/$inc_args{'file_name'}"
144 0 3 if not $FH and undef
147 0 3 if ($FH) { }
2 1 elsif (ref $default_handler eq 'CODE') { }
177 0 4 if ($@)
180 0 4 unless $mock
183 3 0 !ref($mock) || ref $mock eq 'SCALAR' ? :
1 3 ref $mock eq 'GLOB' ? :
185 0 4 unless $type
194 1 6 if defined $source and not ref $source
315 16 7 if $self->{'file_name'} ne $filename
317 5 2 $self->{'source'} ? :