blib/lib/Dist/Zilla/Plugin/Author/Plicease/NoUnsafeInc.pm

filter: Statementstmt 100% 16 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 2 totaltotal 91.3% 21 / 23 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Dist/Zilla/MintingProfile/Author/Plicease.pm ↑ Summary
1 3 package Dist::Zilla::Plugin::Author::Plicease::NoUnsafeInc 2.81 {
2  
3 3 ▶ use 5.022;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 # ABSTRACT: Set x_use_unsafe_inc = 0
7  
8  
9 # Similar to [UseUnsafeInc], except, we don't require a recent Perl
10 # for releases without a environment variable. Risky! But at
11 # least not annoying. We also don't provide an interface to setting
12 # to 1. Code should instead be fixed.
13  
14 3 with 'Dist::Zilla::Role::MetaProvider',
15 'Dist::Zilla::Role::AfterBuild';
16  
17 3 ▶ use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
18  
19 sub metadata
20 1 ▶ {
Subroutine metadata: called CC=1 SCAR=0.0
Pod undocumented
21 1 my($self) = @_;
22 1 return { x_use_unsafe_inc => 0 };
23 }
24  
25 sub after_build
26 1 ▶ {
Subroutine after_build: called CC=1 SCAR=0.0
Pod undocumented
27 1 my($self) = @_;
28 1 $ENV{PERL_USE_UNSAFE_INC} = 0;
29 }
30  
31 3 __PACKAGE__->meta->make_immutable;
32  
33 };
34  
35 3 1;
36  
37 __END__
« blib/lib/Dist/Zilla/MintingProfile/Author/Plicease.pm ↑ Summary