lib/Archive/BagIt/Plugin/SHA256.pm

filter: Statementstmt 100% 23 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 0.0% 0 / 1 totaltotal 96.6% 29 / 30 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
↑ Summary
1 package Archive::BagIt::Plugin::SHA256;
2  
3 3 our $VERSION = '0.006'; # VERSION
4 # ABSTRACT: The main module to handle bags.
5  
6 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 3 ▶use Carp qw( croak );
Subroutine BEGIN: called CC=1 SCAR=0.0
9 3 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 3 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 3 with 'Archive::BagIt::Role::Algorithm',
12 'Archive::BagIt::Role::Manifest',
13 'Archive::BagIt::Role::OpenSSL';
14  
15 2 has '+name' => (
16 is => 'ro',
17 #isa => 'Str',
18 default => 'sha256',
19 );
20  
21 14 ▶sub BUILD {
Subroutine BUILD: called CC=1 SCAR=0.0
Pod undocumented
22 15 my ($self) = @_;
23 15 $self->bagit->plugins( { $self->plugin_name => $self });
24 15 return 1;
25 }
26  
27 2 __PACKAGE__->meta->make_immutable;
28  
29 2 1;
30  
31 __END__
↑ Summary