blib/lib/Crypt/Perl/X/ASN1/Find.pm untested

filter: Statementstmt 0.0% 0 / 14 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 21 CC 2 SCAR 12.8
CC
2
Cov
0%
new
6.0
BEGIN
2.0
BEGIN
2.0
CRAP 3.6
1 package Crypt::Perl::X::ASN1::Find;
2  
3 #This shouldn’t happen as long as the commands come from this library.
4 #But, for completeness …
5  
6 use strict;
7 use warnings;
8  
9 use parent 'Crypt::Perl::X::Base';
10  
11 sub new {
12 my ($class, $macro, $error) = @_;
13  
14 my %attrs = (
15 macro => $macro,
16 error => $error,
17 );
18  
19 if ($error) {
20 return $class->SUPER::new( "Failed to find ASN.1 macro “$macro”: $error", \%attrs );
21 }
22  
23 return $class->SUPER::new( "Failed to find ASN.1 macro “$macro”!", \%attrs );
24 }
25  
26 1;