Branch Coverage

blib/lib/Test/MockPackages.pm
Criterion Covered Total %
branch 16 16 100.0


line true false branch
27 2 8 if (not $pkg_name or ref $pkg_name)
31 2 6 if (my $pkg = $self->{'_packages'}{$pkg_name})
67 1 6 if (ref $config ne 'HASH')
72 1 6 if (ref $subs_href ne 'HASH')
77 1 7 if (ref $config_aref ne 'ARRAY')
81 1 6 if (@$config_aref % 2 > 0)
88 1 12 if (ref $args_aref ne 'ARRAY')
92 1 11 unless (do { local $Test::MockPackages::EVAL_ERROR = undef; eval { do { 'Test::MockPackages::Mock'->can($mock_method) } } })