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 | 751 | use strict; | |||
1 | 3 | ||||||
1 | 37 | ||||||
4 | 1 | 1 | 5 | use warnings; | |||
1 | 2 | ||||||
1 | 50 | ||||||
5 | |||||||
6 | 1 | 1 | 6 | use parent 'Crypt::Perl::X::Base'; | |||
1 | 3 | ||||||
1 | 8 | ||||||
7 | |||||||
8 | sub new { | ||||||
9 | 1 | 1 | 0 | 4 | my ($class, $hash_name) = @_; | ||
10 | |||||||
11 | 1 | 9 | return $class->SUPER::new( "This framework does not know a hashing algorithm named “$hash_name”." ); | ||||
12 | } | ||||||
13 | |||||||
14 | 1; |