SRS/Keyring.pm

filter: Statementstmt 92.8% 13 / 14 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod n/a totaltotal 80.0% 16 / 20 SCAR 7.1
CC
2
Cov
81%
__ANON__
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.0
« SRS/Request.pm ↑ Summary SRS/Contact.pm »
1  
2 package XML::SRS::Keyring;
3  
4 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use PRANG::Graph;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 subtype 'XML::SRS::PGP::PubKey'
9 => as "Str"
10 => where {
11 0 ▶ m{\A-----BEGIN PGP PUBLIC KEY} &&
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
/\A-----BEGIN PGP PUBLIC KEY/ and /-----END PGP PUBLIC KEY.*\Z/ 0 0 0
12 m{-----END PGP PUBLIC KEY.*\Z};
13 1 };
14  
15 1 has_element 'keys' =>
16 is => "rw",
17 isa => "ArrayRef[Str]",
18 xml_nodeName => "EncryptKey",
19 ;
20  
21 1 with 'XML::SRS::Node';
22  
23 1 1;
« SRS/Request.pm ↑ Summary SRS/Contact.pm »