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