File Coverage

lib/Archive/BagIt/Plugin/Algorithm/SHA512.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::SHA512;
2 8     8   4845 use strict;
  8         18  
  8         279  
3 8     8   42 use warnings;
  8         14  
  8         255  
4 8     8   40 use Carp qw( croak );
  8         25  
  8         463  
5 8     8   43 use Moo;
  8         11  
  8         68  
6 8     8   2588 use namespace::autoclean;
  8         15  
  8         53  
7             with 'Archive::BagIt::Role::Algorithm';
8             with 'Archive::BagIt::Role::OpenSSL';
9             our $VERSION = '0.094'; # VERSION
10             # ABSTRACT: The default SHA algorithms plugin (default for v1.0)
11              
12             has '+plugin_name' => (
13             is => 'ro',
14             default => 'Archive::BagIt::Plugin::Algorithm::SHA512',
15             );
16              
17             has '+name' => (
18             is => 'ro',
19             #isa => 'Str',
20             default => 'sha512',
21             );
22              
23             __PACKAGE__->meta->make_immutable;
24             1;
25              
26             __END__