Enbld/Definition/Openssl.pm untested

filter: Statementstmt 0.0% 0 / 27 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 3 totaltotal 0.0% 0 / 38 SCAR 17.9
CC
2
Cov
0%
set_commandconfigure
6.0
initialize
2.0
set_sorted_version_list
2.0
CRAP 6.0
1 package Enbld::Definition::Openssl;
2  
3 use strict;
4 use warnings;
5  
6 use parent qw/Enbld::Definition/;
7  
8 sub initialize {
9 my $self = shift;
10  
11 $self->SUPER::initialize;
12  
13 $self->{defined}{ArchiveName} = 'openssl';
14 $self->{defined}{WebSite} = 'http://www.openssl.org/';
15 $self->{defined}{VersionForm} = '\d\.\d\.\d\w?';
16 $self->{defined}{DownloadSite} = 'http://www.openssl.org/source/';
17  
18 $self->{defined}{DarwinArgument} = 'darwin64-x86_64-cc';
19  
20 $self->{defined}{SortedVersionList} = \&set_sorted_version_list;
21  
22 $self->{defined}{TestAction} = 'test';
23  
24 $self->{defined}{CommandConfigure} = \&set_commandconfigure;
25  
26 return $self;
27 }
28  
29 sub set_commandconfigure {
30 return $^O eq 'darwin' ? './configure' : './config';
31 }
32  
33 sub set_sorted_version_list {
34 my $attributes = shift;
35  
36 my $list = $attributes->VersionList;
37  
38 my @sorted = sort { $a cmp $b } @{ $list };
39  
40 return \@sorted;
41 }
42  
43 1;
44  
45 =pod
46  
47 =head1 NAME
48  
49 Enbld::Definition::Openssl - definition module for OpenSSL
50  
51 =head1 SEE ALSO
52  
53 L<OpenSSL|http://www.openssl.org>
54  
55 L<Enbld::Definition>
56  
57 =head1 COPYRIGHT
58  
59 copyright 2013- Magnolia C<< <magnolia.k@me.com> >>.
60  
61 =head1 LICENSE
62  
63 This is free software; you can redistribute it and/or modify it under
64 the same terms as the Perl 5 programming language system itself.
65  
66 =cut