blib/lib/Crypt/Perl/X/ECDSA/CharacteristicTwoUnsupported.pm untested

filter: Statementstmt 0.0% 0 / 13 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 / 20 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::ECDSA::CharacteristicTwoUnsupported;
2  
3 use strict;
4 use warnings;
5  
6 use parent 'Crypt::Perl::X::Base';
7  
8 sub new {
9 my ($class, $curve_name) = @_;
10  
11 if ($curve_name) {
12 return $class->SUPER::new( "This library does not support ECDSA curves that use Characteristic-2 fields, like “$curve_name”.", { curve_name => $curve_name } );
13 }
14  
15 return $class->SUPER::new( "This library does not support ECDSA curves that use Characteristic-2 fields." );
16 }
17  
18 1;