blib/lib/Test/MockModule.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 20 | 21 | 95.2 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
32 | 38 | 0 | 13 | $hints and grep {m[^Test::MockModule/];} keys %{$hints;} |
43 | 1 | 20 | 1 | $package and my $existing = $mocked{$package} |
47 | 1 | 19 | 1 | $package and $package eq $class |
128 | 20 | 1 | 13 | ref $value and &reftype($value) eq 'CODE' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
53 | 1 | 1 | 16 | $package eq 'CORE::GLOBAL' or $package eq 'main' |
2 | 4 | 12 | $package eq 'CORE::GLOBAL' or $package eq 'main' or $args{'no_auto'} | |
4 | 6 | 6 | $package eq 'CORE::GLOBAL' or $package eq 'main' or $args{'no_auto'} or ${"${package}::VERSION";} |