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 10     10   211050 use strict;
  10         172  
  10         506  
3 10     10   61 use warnings;
  10         77  
  10         676  
4 10     10   93 use Carp qw( croak );
  10         22  
  10         786  
5 10     10   721 use Moo;
  10         11592  
  10         93  
6 10     10   7408 use namespace::autoclean;
  10         25708  
  10         98  
7             with 'Archive::BagIt::Role::Algorithm';
8             with 'Archive::BagIt::Role::OpenSSL';
9             our $VERSION = '0.101'; # 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__