Form/KeygenInput.pm

filter: Statementstmt 100% 12 / 12 Branchbran n/a Conditioncond 50.0% 1 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 2 totaltotal 80.9% 17 / 21 CC 2 SCAR 3.5
CC
2
Cov
93%
keytype
2.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.4
« Form/SubmitInput.pm ↑ Summary Form/IgnoreInput.pm »
1 package HTML::Form::KeygenInput;
2  
3 11 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 11 ▶use parent 'HTML::Form::Input';
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 11 our $VERSION = '6.13';
7  
8 # ABSTRACT: An HTML form keygen input element for use with HTML::Form
9  
10 1 ▶sub challenge {
Subroutine challenge: called CC=1 SCAR=0.0
Pod undocumented
11 1 my $self = shift;
12 1 return $self->{challenge};
13 }
14  
15 1 ▶sub keytype {
Subroutine keytype: called CC=2 SCAR=7.2
Pod undocumented
16 1 my $self = shift;
17 1 ▶ return lc( $self->{keytype} || 'rsa' );
Condition50%1/2
$self->{'keytype'} || 'rsa'
l!l
01
MC/DC0%0/1
$self->{'keytype'} || 'rsa'
$self->{'keytype'}
Truth table50%1/2
A
A= $self->{'keytype'}
Aresult
11
00
18 }
19  
20 11 1;
21  
22 __END__
« Form/SubmitInput.pm ↑ Summary Form/IgnoreInput.pm »