File Coverage

blib/lib/Devel/ChangePackage.pm
Criterion Covered Total %
statement 13 13 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod n/a
total 18 18 100.0


line stmt bran cond sub pod time code
1 3     3   80978 use strict;
  3         8  
  3         106  
2 3     3   15 use warnings;
  3         7  
  3         155  
3              
4             package Devel::ChangePackage;
5             BEGIN {
6 3     3   88 $Devel::ChangePackage::AUTHORITY = 'cpan:FLORA';
7             }
8             {
9             $Devel::ChangePackage::VERSION = '0.08';
10             }
11             # ABSTRACT: Change the package code is currently being compiled in
12              
13 3     3   30 use XSLoader;
  3         7  
  3         141  
14 3         35 use Sub::Exporter -setup => {
15             exports => ['change_package'],
16             groups => { default => ['change_package'] },
17 3     3   17243 };
  3         64724  
18              
19              
20             XSLoader::load(
21             __PACKAGE__,
22             # we need to be careful not to touch $VERSION at compile time, otherwise
23             # DynaLoader will assume it's set and check against it, which will cause
24             # fail when being run in the checkout without dzil having set the actual
25             # $VERSION
26             exists $Devel::ChangePackage::{VERSION}
27             ? ${ $Devel::ChangePackage::{VERSION} } : (),
28             );
29              
30             1;
31              
32             __END__