Branch Coverage

blib/lib/Test/DeepMock.pm
Criterion Covered Total %
branch 33 34 97.0


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