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

filter: Statementstmt 92.8% 13 / 14 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 1 totaltotal 85.7% 18 / 21 CC 2 SCAR 3.8
CC
2
Cov
88%
new
2.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.5
« lib/Crypt/Perl/X509/Extension/keyUsage.pm ↑ Summary blib/lib/Crypt/Perl/Ed25519/KeyBase.pm »
1 package Crypt::Perl::X::ECDSA::CharacteristicTwoUnsupported;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 ▶use parent 'Crypt::Perl::X::Base';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 sub new {
9 120 ▶ my ($class, $curve_name) = @_;
Subroutine new: called CC=2 SCAR=7.6
Pod undocumented
10  
11 120 ▶ if ($curve_name) {
Branch: 1 branch
BranchTrueFalseTotal
if ($curve_name) 0 120 120
12 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 return $class->SUPER::new( "This library does not support ECDSA curves that use Characteristic-2 fields." );
16 }
17  
18 1 1;
« lib/Crypt/Perl/X509/Extension/keyUsage.pm ↑ Summary blib/lib/Crypt/Perl/Ed25519/KeyBase.pm »