blib/lib/Module/Build/Platform/cygwin.pm untested

filter: Statementstmt 0.0% 0 / 21 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 31 CC 2 SCAR 11.5
CC
2
Cov
0%
_maybe_command
6.0
manpage_separator
2.0
BEGIN
2.0
CRAP 3.1
1 package Module::Build::Platform::cygwin;
2  
3 use strict;
4 use warnings;
5 our $VERSION = '0.4234';
6 $VERSION = eval $VERSION;
7 use Module::Build::Platform::Unix;
8  
9 our @ISA = qw(Module::Build::Platform::Unix);
10  
11 sub manpage_separator {
12 '.'
13 }
14  
15 # Copied from ExtUtils::MM_Cygwin::maybe_command()
16 # If our path begins with F</cygdrive/> then we use the Windows version
17 # to determine if it may be a command. Otherwise we use the tests
18 # from C<ExtUtils::MM_Unix>.
19  
20 sub _maybe_command {
21 my ($self, $file) = @_;
22  
23 if ($file =~ m{^/cygdrive/}i) {
24 require Module::Build::Platform::Windows;
25 return Module::Build::Platform::Windows->_maybe_command($file);
26 }
27  
28 return $self->SUPER::_maybe_command($file);
29 }
30  
31 1;
32 __END__