lib/Crypt/Perl/X/UnknownHash.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 11 | 11 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 4 | 4 | 100.0 |
pod | 0 | 1 | 0.0 |
total | 15 | 16 | 93.7 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Crypt::Perl::X::UnknownHash; | ||||||
2 | |||||||
3 | 1 | 1 | 674 | use strict; | |||
1 | 2 | ||||||
1 | 33 | ||||||
4 | 1 | 1 | 4 | use warnings; | |||
1 | 2 | ||||||
1 | 37 | ||||||
5 | |||||||
6 | 1 | 1 | 5 | use parent 'Crypt::Perl::X::Base'; | |||
1 | 2 | ||||||
1 | 7 | ||||||
7 | |||||||
8 | sub new { | ||||||
9 | 1 | 1 | 0 | 3 | my ($class, $hash_name) = @_; | ||
10 | |||||||
11 | 1 | 8 | return $class->SUPER::new( "This framework does not know a hashing algorithm named “$hash_name”." ); | ||||
12 | } | ||||||
13 | |||||||
14 | 1; |