Jmx4Perl/Agent/Jolokia/Verifier/SHA1Verifier.pm untested

filter: Statementstmt 0.0% 0 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 7 Podpod 0.0% 0 / 3 totaltotal 0.0% 0 / 25 CC 1 SCAR 6.9
CC
1
Cov
0%
extension
2.0
name
2.0
create_digester
2.0
CRAP 2.0
1 #!/usr/bin/perl
2 package JMX::Jmx4Perl::Agent::Jolokia::Verifier::SHA1Verifier;
3  
4 use Digest::SHA1;
5 use JMX::Jmx4Perl::Agent::Jolokia::Verifier::ChecksumVerifier;
6 use base qw(JMX::Jmx4Perl::Agent::Jolokia::Verifier::ChecksumVerifier);
7 use strict;
8  
9 =head1 NAME
10  
11 JMX::Jmx4Perl::Agent::Jolokia::Verifier::SHA1Verifier - Verifies a
12 SHA1 checksum
13  
14 =head1 DESCRIPTION
15  
16 Verifies against a SHA1 checksum for an artifact. The SHA1 sum needs to be
17 available parallel to the download artifact with a ".sha1" extension.
18  
19 =cut
20  
21 sub extension {
22 return ".sha1";
23 }
24  
25 sub name {
26 return "SHA1";
27 }
28  
29 sub create_digester {
30 return new Digest::SHA1();
31 }
32  
33 =head1 LICENSE
34  
35 This file is part of jmx4perl.
36 Jmx4perl is free software: you can redistribute it and/or modify
37 it under the terms of the GNU General Public License as published by
38 The Free Software Foundation, either version 2 of the License, or
39 (at your option) any later version.
40
41 jmx4perl is distributed in the hope that it will be useful,
42 but WITHOUT ANY WARRANTY; without even the implied warranty of
43 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
44 GNU General Public License for more details.
45
46 You should have received a copy of the GNU General Public License
47 along with jmx4perl. If not, see <http://www.gnu.org/licenses/>.
48  
49 A commercial license is available as well. Please contact roland@cpan.org for
50 further details.
51  
52 =head1 AUTHOR
53  
54 roland@cpan.org
55  
56 =cut
57  
58 1;