lib/Crypt/Perl/X/ECDSA/NoCurveForOID.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::ECDSA::NoCurveForOID; | ||||||
2 | |||||||
3 | 5 | 5 | 2644 | use strict; | |||
5 | 13 | ||||||
5 | 141 | ||||||
4 | 5 | 5 | 24 | use warnings; | |||
5 | 11 | ||||||
5 | 137 | ||||||
5 | |||||||
6 | 5 | 5 | 25 | use parent 'Crypt::Perl::X::Base'; | |||
5 | 10 | ||||||
5 | 33 | ||||||
7 | |||||||
8 | sub new { | ||||||
9 | 984 | 984 | 0 | 2303 | my ($class, $oid) = @_; | ||
10 | |||||||
11 | 984 | 4361 | return $class->SUPER::new( "This library has no curve parameters that match the OID “$oid”.", { oid => $oid } ); | ||||
12 | } | ||||||
13 | |||||||
14 | 1; |