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 | 4 | 4 | 2772 | use strict; | |||
4 | 14 | ||||||
4 | 124 | ||||||
4 | 4 | 4 | 20 | use warnings; | |||
4 | 5 | ||||||
4 | 163 | ||||||
5 | |||||||
6 | 4 | 4 | 17 | use parent 'Crypt::Perl::X::Base'; | |||
4 | 12 | ||||||
4 | 43 | ||||||
7 | |||||||
8 | sub new { | ||||||
9 | 40 | 40 | 0 | 119 | my ($class, $pdu, $error) = @_; | ||
10 | |||||||
11 | 40 | 281 | return $class->SUPER::new( "Failed to decode ASN.1 data ($pdu): $error", { pdu => $pdu, error => $error } ); | ||||
12 | } | ||||||
13 | |||||||
14 | 1; |