Role/PrereqSource/External.pm

filter: Statementstmt 100% 27 / 27 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod n/a totaltotal 100% 34 / 34 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Role/xPANResolver.pm ↑ Summary
1 3 ▶use 5.006; # our
Subroutine BEGIN: called CC=1 SCAR=0.0
2 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 package Dist::Zilla::Role::PrereqSource::External;
6  
7 3 our $VERSION = 'v0.3.0';
8  
9 3 our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY
10  
11 # FILENAME: External.pm
12 # CREATED: 30/10/11 10:56:47 by Kent Fredric (kentnl) <kentfredric@gmail.com>
13 # ABSTRACT: A plugin that depends on DarkPAN/External sources
14  
15 3 ▶use Moose::Role qw( with requires around );
Subroutine BEGIN: called CC=1 SCAR=0.0
16 3 with 'Dist::Zilla::Role::Plugin';
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30 3 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
31  
32 3 requires 'register_external_prereqs';
33  
34 1 ▶around dump_config => sub {
Subroutine __ANON__: called CC=1 SCAR=0.0
35 1 my ( $orig, $self, @args ) = @_;
36 1 my $config = $self->$orig(@args);
37 1 $config->{ +__PACKAGE__ }->{ q[$] . __PACKAGE__ . q[::VERSION] } = $VERSION;
38 1 return $config;
39 3 };
40  
41 3 ▶no Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
42 3 1;
43  
44 __END__
« Role/xPANResolver.pm ↑ Summary