File Coverage

blib/lib/Software/License/OpenSSL.pm
Criterion Covered Total %
statement 15 16 93.7
branch n/a
condition 2 3 66.6
subroutine 8 9 88.8
pod 5 5 100.0
total 30 33 90.9


line stmt bran cond sub pod time code
1 10     10   5880 use strict;
  10         24  
  10         277  
2 10     10   49 use warnings;
  10         21  
  10         454  
3             package Software::License::OpenSSL;
4             $Software::License::OpenSSL::VERSION = '0.104004';
5 10     10   52 use parent 'Software::License';
  10         19  
  10         42  
6             # ABSTRACT: The OpenSSL License
7              
8             require Software::License::SSLeay;
9              
10 22     22 1 152 sub name { 'OpenSSL License' }
11 0     0 1 0 sub url { 'http://www.openssl.org/source/license.html' }
12 43     43 1 132 sub meta_name { 'open_source' }
13 42     42 1 146 sub meta2_name { 'openssl' }
14 43     43 1 120 sub spdx_expression { 'OpenSSL' }
15              
16             sub _ssleay {
17 2     2   1775 my ($self) = @_;
18 2   66     15 return $self->{_ssleay} ||= Software::License::SSLeay->new({
19             year => $self->year,
20             holder => $self->holder,
21             });
22             }
23              
24             1;
25              
26             =pod
27              
28             =encoding UTF-8
29              
30             =head1 NAME
31              
32             Software::License::OpenSSL - The OpenSSL License
33              
34             =head1 VERSION
35              
36             version 0.104004
37              
38             =head1 PERL VERSION
39              
40             This module is part of CPAN toolchain, or is treated as such. As such, it
41             follows the agreement of the Perl Toolchain Gang to require no newer version
42             of perl than one released in the last ten years. This version may change by
43             agreement of the Toolchain Gang, but for now is governed by the L
44             Consensus|https://github.com/Perl-Toolchain-Gang/toolchain-site/blob/master/lancaster-consensus.md>
45             of 2013 and the Lyon Amendment of 2023 (described at the linked-to document).
46              
47             Although it may work on older versions of perl, no guarantee is made that the
48             minimum required version will not be increased. The version may be increased
49             for any reason, and there is no promise that patches will be accepted to
50             lower the minimum required perl.
51              
52             =head1 AUTHOR
53              
54             Ricardo Signes
55              
56             =head1 COPYRIGHT AND LICENSE
57              
58             This software is copyright (c) 2023 by Ricardo Signes.
59              
60             This is free software; you can redistribute it and/or modify it under
61             the same terms as the Perl 5 programming language system itself.
62              
63             =cut
64              
65             __DATA__