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   6223 use strict;
  10         23  
  10         328  
2 10     10   53 use warnings;
  10         20  
  10         535  
3             package Software::License::OpenSSL;
4             $Software::License::OpenSSL::VERSION = '0.104001';
5 10     10   60 use parent 'Software::License';
  10         40  
  10         52  
6             # ABSTRACT: The OpenSSL License
7              
8             require Software::License::SSLeay;
9              
10 22     22 1 158 sub name { 'OpenSSL License' }
11 0     0 1 0 sub url { 'http://www.openssl.org/source/license.html' }
12 43     43 1 152 sub meta_name { 'open_source' }
13 42     42 1 115 sub meta2_name { 'openssl' }
14 43     43 1 126 sub spdx_expression { 'OpenSSL' }
15              
16             sub _ssleay {
17 2     2   1816 my ($self) = @_;
18 2   66     16 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.104001
37              
38             =head1 AUTHOR
39              
40             Ricardo Signes
41              
42             =head1 COPYRIGHT AND LICENSE
43              
44             This software is copyright (c) 2021 by Ricardo Signes.
45              
46             This is free software; you can redistribute it and/or modify it under
47             the same terms as the Perl 5 programming language system itself.
48              
49             =cut
50              
51             __DATA__