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 7     7   3602 use strict;
  7         13  
  7         188  
3 7     7   34 use warnings;
  7         13  
  7         226  
4 7     7   38 use Carp qw( croak );
  7         11  
  7         318  
5 7     7   50 use Moo;
  7         24  
  7         51  
6 7     7   2132 use namespace::autoclean;
  7         12  
  7         34  
7             with 'Archive::BagIt::Role::Algorithm';
8             with 'Archive::BagIt::Role::OpenSSL';
9             our $VERSION = '0.092'; # 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__