File Coverage

lib/Crypt/Perl/X/ASN1/Decode.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::ASN1::Decode;
2              
3 5     5   3840 use strict;
  5         21  
  5         190  
4 5     5   38 use warnings;
  5         21  
  5         238  
5              
6 5     5   29 use parent 'Crypt::Perl::X::Base';
  5         16  
  5         73  
7              
8             sub new {
9 75     75 0 258 my ($class, $pdu, $error) = @_;
10              
11 75         635 return $class->SUPER::new( "Failed to decode ASN.1 data ($pdu): $error", { pdu => $pdu, error => $error } );
12             }
13              
14             1;