Compile/Opt.pm untested

filter: Statementstmt 0.0% 0 / 8 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 0.0% 0 / 3 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 19 CC 2 SCAR 13.9
CC
2
Cov
0%
sanity_check
6.0
BEGIN
2.0
BEGIN
2.0
CRAP 4.0
1 use strict; use warnings;
2 package Module::Compile::Opt;
3  
4 # TODO; What is this module for?
5 # sub import {
6 # my ($class, @args) = @_;
7 # my $opts = $class->get_options(@args)
8 # if $class->can('get_options');
9 # $class->sanity_check($opts);
10 # require Module::Compile;
11 # require Module::Compile::Ext;
12 # Module::Compile::Ext->import(@{$opts->{ext}});
13 #
14 # # put coderef into @INC
15 # # Store PERL5OPT in .author
16 # # In Module::Compile, complain if PERL5OPT != .author/PERL5OPT
17 # }
18  
19 sub sanity_check {
20 my $class = shift;
21 die unless -e 'inc' and -e 'Makefile.PL';
22 }
23  
24 1;