Parse/KeyBase.pm

filter: Statementstmt 100% 8 / 8 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod 0.0% 0 / 1 totaltotal 91.6% 11 / 12 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
size
1.0
CRAP 1.0
« Parse/Template.pm ↑ Summary Parse/Parser/MathBigInt.pm »
1 package Crypt::RSA::Parse::KeyBase;
2  
3 2 ▶use parent qw(Class::Accessor::Fast);
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 2 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
6 2 __PACKAGE__->mk_ro_accessors('modulus');
7  
8 2 *N = \&modulus;
9 }
10  
11 10 ▶sub size {
Subroutine size: called CC=1 SCAR=0.0
Pod undocumented
12 10 my ($self) = @_;
13  
14 10 return length( $self->modulus()->as_bin() ) - 2;
15 }
16  
17 2 1;
« Parse/Template.pm ↑ Summary Parse/Parser/MathBigInt.pm »