File Coverage

blib/lib/swd.pm
Criterion Covered Total %
statement 10 10 100.0
branch 1 2 50.0
condition n/a
subroutine 4 4 100.0
pod n/a
total 15 16 93.7


line stmt bran cond sub pod time code
1             package swd;
2              
3              
4             our $VERSION = '0.01';
5              
6 1     1   986 use strict;
  1         2  
  1         41  
7 1     1   6 use Carp;
  1         2  
  1         94  
8 1     1   19 use Cwd qw(realpath chdir);
  1         3  
  1         129  
9              
10             BEGIN {
11              
12 1 50   1   240 chdir join(q//, split(/.[^\/]+$/, realpath($0)))
13             or croak "cannot chdir: $!\n";
14             }
15              
16              
17             1
18              
19              
20             __END__