| 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 | 722 | use strict; | |||
| 1 | 3 | ||||||
| 1 | 33 | ||||||
| 4 | 1 | 1 | 5 | use warnings; | |||
| 1 | 2 | ||||||
| 1 | 34 | ||||||
| 5 | |||||||
| 6 | 1 | 1 | 4 | use parent 'Crypt::Perl::X::Base'; | |||
| 1 | 2 | ||||||
| 1 | 9 | ||||||
| 7 | |||||||
| 8 | sub new { | ||||||
| 9 | 1 | 1 | 0 | 3 | 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; |