Stenciller/Standard.pm

filter: Statementstmt 100% 37 / 37 Branchbran n/a Conditioncond 50.0% 1 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 100% 11 / 11 Podpod n/a totaltotal 96.0% 49 / 51 SCAR 6.9
CC
2
Cov
97%
import
2.0
__ANON__
1.0
__ANON__
1.0
CRAP 2.0
« Stenciller/Plugin/ToUnparsedText.pm ↑ Summary Stenciller.pm »
1 7 ▶use 5.14.0;
Subroutine __ANON__: called CC=1 SCAR=0.0
2 7 ▶use strict;
Subroutine __ANON__: called CC=1 SCAR=0.0
3 7 ▶use warnings;
Subroutine __ANON__: called CC=1 SCAR=0.0
4  
5 7 package Stenciller::Standard {
6  
7 7 our $VERSION = '0.1302'; # VERSION:
8 # ABSTRACT: Import to all
9  
10 7 ▶ use base 'Moops';
Subroutine __ANON__: called CC=1 SCAR=0.0
11 7 ▶ use List::AllUtils();
Subroutine __ANON__: called CC=1 SCAR=0.0
12 7 ▶ use Types::Stenciller();
Subroutine __ANON__: called CC=1 SCAR=0.0
13 7 ▶ use MooseX::AttributeDocumented();
Subroutine BEGIN: called CC=1 SCAR=0.0
14 7 ▶ use Path::Tiny();
Subroutine BEGIN: called CC=1 SCAR=0.0
15 7 ▶ use PerlX::Maybe();
Subroutine BEGIN: called CC=1 SCAR=0.0
16 7 ▶ use Carp();
Subroutine BEGIN: called CC=1 SCAR=0.0
17  
18 sub import {
19 27 ▶ my $class = shift;
Subroutine import: called CC=2 SCAR=7.0
20 27 my %opts = @_;
21  
22 27 ▶ push @{ $opts{'imports'} ||= [] } => (
Condition50%1/2
$opts{"imports"} ||= []
l!l
027
MC/DC0%0/1
$opts{"imports"} ||= []
$opts{"imports"}
Truth table50%1/2
A
A= $opts{"imports"}
Aresult
11
00
23 'List::AllUtils' => [qw/any none sum uniq first_index/],
24 'feature' => [qw/:5.14/],
25 'Types::Stenciller' => [{ replace => 1 }, '-types'],
26 'Path::Tiny' => ['path'],
27 'MooseX::AttributeDocumented' => [],
28 'PerlX::Maybe' => [qw/maybe provided/],
29 'Carp' => [qw/carp/],
30 );
31  
32 27 $class->SUPER::import(%opts);
33 }
34 }
35  
36 7 1;
37  
38 __END__
39  
40 =pod
41  
42 =encoding UTF-8
43  
44 =head1 NAME
45  
46 Stenciller::Standard - Import to all
47  
48 =head1 VERSION
49  
50 Version 0.1302, released 2015-11-28.
51  
52 =head1 SOURCE
53  
54 L<https://github.com/Csson/p5-Stenciller>
55  
56 =head1 HOMEPAGE
57  
58 L<https://metacpan.org/release/Stenciller>
59  
60 =head1 AUTHOR
61  
62 Erik Carlsson <info@code301.com>
63  
64 =head1 COPYRIGHT AND LICENSE
65  
66 This software is copyright (c) 2015 by Erik Carlsson.
67  
68 This is free software; you can redistribute it and/or modify it under
69 the same terms as the Perl 5 programming language system itself.
70  
71 =cut
« Stenciller/Plugin/ToUnparsedText.pm ↑ Summary Stenciller.pm »