File Coverage

lib/Crypt/Perl/X/ECDSA/CharacteristicTwoUnsupported.pm
Criterion Covered Total %
statement 12 13 92.3
branch 1 2 50.0
condition n/a
subroutine 4 4 100.0
pod 0 1 0.0
total 17 20 85.0


line stmt bran cond sub pod time code
1             package Crypt::Perl::X::ECDSA::CharacteristicTwoUnsupported;
2              
3 1     1   964 use strict;
  1         2  
  1         47  
4 1     1   13 use warnings;
  1         3  
  1         62  
5              
6 1     1   10 use parent 'Crypt::Perl::X::Base';
  1         3  
  1         19  
7              
8             sub new {
9 120     120 0 522 my ($class, $curve_name) = @_;
10              
11 120 50       397 if ($curve_name) {
12 0         0 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 120         613 return $class->SUPER::new( "This library does not support ECDSA curves that use Characteristic-2 fields." );
16             }
17              
18             1;