blib/lib/AutoCode/Unimplemented.pm untested

filter: Statementstmt 0.0% 0 / 18 Branchbran n/a Conditioncond 0.0% 0 / 6 MC/DCmcdc 0.0% 0 / 4 Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 33 CC 1 SCAR 6.9
CC
1
Cov
0%
import
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package AutoCode::Unimplemented;
2 use strict;
3 use AutoCode::Root;
4 our @ISA=qw(AutoCode::Root);
5  
6 sub import {
7 my ($caller, $methods, $pkg)=@_;
8 my $class = ref($caller)||$caller;
9 $pkg||=caller;
10 no strict 'refs';
11 foreach(@$methods){
12 *{"$pkg\::$_"}= sub {shift->not_implemented;};
13 }
14 }
15  
16 1;
17 __END__