| 1 | package Software::Policies::Security; | ||||||||||||
| 2 | |||||||||||||
| 3 | 2 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 4 | 2 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 5 | 2 | ▶ | use 5.010; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 6 | |||||||||||||
| 7 | # ABSTRACT: Create project policy file: Security | ||||||||||||
| 8 | |||||||||||||
| 9 | 2 | our $VERSION = '0.006'; | |||||||||||
| 10 | |||||||||||||
| 11 | 2 | ▶ | use Carp; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 12 | 2 | ▶ | use Module::Load qw( load ); | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 13 | |||||||||||||
| 14 | 0 | ▶ | sub new { | ||||||||||
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||
| 15 | 0 | my ($class) = @_; | |||||||||||
| 16 | 0 | return bless {}, $class; | |||||||||||
| 17 | } | ||||||||||||
| 18 | |||||||||||||
| 19 | 0 | ▶ | sub create { | ||||||||||
|
Subroutine
create: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||||
| 20 | 0 | my ( $self, %args ) = @_; | |||||||||||
| 21 | 0 | ▶ | my $class = $args{'class'} // 'Individual'; | ||||||||||
|
Condition0%0/2
$args{"class"} // "Individual"
MC/DC0%0/1
$args{"class"} // "Individual"
$args{"class"}
Truth table0%0/2
A
A= $args{"class"}
| |||||||||||||
| 22 | 0 | my $module = __PACKAGE__ . q{::} . $class; | |||||||||||
| 23 | 0 | load $module; | |||||||||||
| 24 | 0 | my $m = $module->new(); | |||||||||||
| 25 | 0 | my %r = $m->create(%args); | |||||||||||
| 26 | 0 | return \%r; | |||||||||||
| 27 | } | ||||||||||||
| 28 | |||||||||||||
| 29 | 1 | ▶ | sub get_available_classes_and_versions { | ||||||||||
|
Subroutine
get_available_classes_and_versions: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||
| 30 | return { | ||||||||||||
| 31 | 1 | 'Individual' => { | |||||||||||
| 32 | versions => { | ||||||||||||
| 33 | '1' => 1, | ||||||||||||
| 34 | }, | ||||||||||||
| 35 | formats => { | ||||||||||||
| 36 | 'markdown' => 1, | ||||||||||||
| 37 | }, | ||||||||||||
| 38 | }, | ||||||||||||
| 39 | }; | ||||||||||||
| 40 | } | ||||||||||||
| 41 | |||||||||||||
| 42 | 2 | 1; | |||||||||||
| 43 | |||||||||||||
| 44 | __END__ | ||||||||||||