Jmx4Perl/Agent/Jolokia/Verifier/MD5Verifier.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::MD5Verifier;
3  
4 use Digest::MD5;
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::MD5Verifier - Verifies a
12 MD5 checksum
13  
14 =head1 DESCRIPTION
15  
16 Verifies against a MD5 checksum for an artifact. The MD5 sum needs to be
17 available parallel to the download artifact with a ".md5" extension.
18  
19 =cut
20  
21  
22 sub extension {
23 return ".md5";
24 }
25  
26 sub name {
27 return "MD5";
28 }
29  
30 sub create_digester {
31 return new Digest::MD5();
32 }
33  
34 =head1 LICENSE
35  
36 This file is part of jmx4perl.
37 Jmx4perl is free software: you can redistribute it and/or modify
38 it under the terms of the GNU General Public License as published by
39 The Free Software Foundation, either version 2 of the License, or
40 (at your option) any later version.
41
42 jmx4perl is distributed in the hope that it will be useful,
43 but WITHOUT ANY WARRANTY; without even the implied warranty of
44 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
45 GNU General Public License for more details.
46
47 You should have received a copy of the GNU General Public License
48 along with jmx4perl. If not, see <http://www.gnu.org/licenses/>.
49  
50 A commercial license is available as well. Please contact roland@cpan.org for
51 further details.
52  
53 =head1 AUTHOR
54  
55 roland@cpan.org
56  
57 =cut
58  
59 1;
60