SAML2/Util.pm

filter: Statementstmt 100% 17 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 100% 2 / 2 totaltotal 100% 25 / 25 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« SAML2/Role/XMLLang.pm ↑ Summary SAML2/XML/Sig.pm »
1 33 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 33 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 package Net::SAML2::Util;
4 33 our $VERSION = '0.89'; # VERSION
5  
6 33 ▶use Crypt::OpenSSL::Random qw(random_pseudo_bytes);
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 # ABSTRACT: Utility functions for Net::SAML2
9  
10 33 ▶use Exporter qw(import);
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 33 our @EXPORT_OK = qw(
13 generate_id
14 deprecation_warning
15 );
16  
17 40 ▶sub generate_id {
Subroutine generate_id: called CC=1 SCAR=0.0
Pod documented
18 40 return 'NETSAML2_' . unpack 'H*', random_pseudo_bytes(32);
19 }
20  
21 2 ▶sub deprecation_warning {
Subroutine deprecation_warning: called CC=1 SCAR=0.0
Pod documented
22 2 warn "Net::SAML2 deprecation warning: " . shift . "\n";
23 }
24  
25  
26 33 1;
27  
28 __END__
« SAML2/Role/XMLLang.pm ↑ Summary SAML2/XML/Sig.pm »