File Coverage

lib/Archive/BagIt/Plugin/Algorithm/MD5.pm
Criterion Covered Total %
statement 15 15 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod n/a
total 20 20 100.0


line stmt bran cond sub pod time code
1             package Archive::BagIt::Plugin::Algorithm::MD5;
2 10     10   269028 use strict;
  10         180  
  10         464  
3 10     10   54 use warnings;
  10         20  
  10         656  
4 10     10   59 use Carp qw( croak );
  10         16  
  10         741  
5 10     10   752 use Moo;
  10         12710  
  10         100  
6 10     10   7408 use namespace::autoclean;
  10         25690  
  10         154  
7             with 'Archive::BagIt::Role::Algorithm', 'Archive::BagIt::Role::OpenSSL';
8             our $VERSION = '0.101'; # VERSION
9             # ABSTRACT: The MD5 algorithm plugin (default for v0.97)
10              
11             has '+plugin_name' => (
12             is => 'ro',
13             default => 'Archive::BagIt::Plugin::Algorithm::MD5',
14             );
15              
16             has '+name' => (
17             is => 'ro',
18             #isa => 'Str',
19             default => 'md5',
20             );
21              
22              
23              
24             __PACKAGE__->meta->make_immutable;
25             1;
26              
27             __END__