blib/lib/Statocles/Base.pm

filter: Statementstmt 100% 30 / 30 Branchbran n/a Conditioncond 50.0% 1 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 100% 9 / 9 Podpod n/a totaltotal 95.2% 40 / 42 CC 2 SCAR 1.9
CC
2
Cov
97%
__ANON__
2.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« blib/lib/Statocles/Types.pm ↑ Summary blib/lib/Statocles/Page.pm »
1 package Statocles::Base;
2 104 our $VERSION = '0.099';
3 # ABSTRACT: Base module for Statocles modules
4  
5 104 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 104 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 104 ▶use base 'Import::Base';
Subroutine BEGIN: called CC=1 SCAR=0.0
8 104 ▶use YAML;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 104 $YAML::Stringify = 1;
10  
11 our @IMPORT_MODULES = (
12 1781 ▶ sub {
Subroutine __ANON__: called CC=1 SCAR=0.0
13 # Disable spurious warnings on platforms that Net::DNS::Native does not
14 # support. We don't use this much mojo
15 1781 $ENV{MOJO_NO_NDN} = 1;
16 1781 return;
17 },
18 104 strict => [],
19 warnings => [],
20 feature => [qw( :5.10 )],
21 'Path::Tiny' => [qw( rootdir cwd )],
22 'DateTime::Moonpig',
23 );
24  
25 104 my @class_modules = (
26 'Types::Standard' => [qw( :all )],
27 'Types::Path::Tiny' => [qw( Path AbsPath Dir )],
28 'Statocles::Types' => [qw( :all )],
29 );
30  
31 our %IMPORT_BUNDLES = (
32 Test => [
33 1 ▶ sub { warn 'Bundle Test deprecated and will be removed in v1.000, do not use'; return },
Subroutine __ANON__: called CC=1 SCAR=0.0
34 qw( Test::More Test::Deep Test::Differences Test::Exception ),
35 'Dir::Self' => [qw( __DIR__ )],
36 'Path::Tiny' => [qw( path tempdir cwd )],
37 'Statocles::Test' => [qw(
38 test_constructor test_pages build_test_site build_test_site_apps
39 build_temp_site
40 )],
41 'Statocles::Types' => [qw( DateTimeObj )],
42 1 ▶ sub { $Statocles::VERSION ||= 0.001; return }, # Set version normally done via dzil
Subroutine __ANON__: called CC=2 SCAR=7.2
Condition50%1/2
$Statocles::VERSION ||= "0.001"
l!l
10
MC/DC0%0/1
$Statocles::VERSION ||= "0.001"
$Statocles::VERSION
Truth table50%1/2
A
A= $Statocles::VERSION
Aresult
11
00
43 ],
44  
45 Class => [
46 '<Moo',
47 @class_modules,
48 ],
49  
50 Role => [
51 '<Moo::Role',
52 @class_modules,
53 ],
54  
55 Command => [
56 '<Moo',
57 @class_modules,
58 'Getopt::Long' => [qw( GetOptionsFromArray )],
59 19 ▶ sub {
Subroutine __ANON__: called CC=1 SCAR=0.0
60 19 my ( $bundles, $args ) = @_;
61 19 $args->{package}->can( 'extends' )->( 'Statocles::Command' );
62 19 return;
63 },
64 ],
65  
66 Emitter => [
67 'Beam::Emitter',
68 'Statocles::Event',
69 108 ▶ sub {
Subroutine __ANON__: called CC=1 SCAR=0.0
70 108 my ( $bundles, $args ) = @_;
71 108 Moo::Role->apply_roles_to_package( $args->{package}, 'Beam::Emitter' );
72 108 return;
73 },
74 104 ],
75 );
76  
77 104 1;
78  
79 __END__
« blib/lib/Statocles/Types.pm ↑ Summary blib/lib/Statocles/Page.pm »