blib/lib/Net/IDN/Punycode.pm

filter: Statementstmt 93.3% 28 / 30 Branchbran 50.0% 2 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 89.7% 35 / 39 CC 1 SCAR 0.0
CC
1
Cov
88%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Net/IDN/UTS46/_Mapping.pm ↑ Summary lib/Net/IDN/Punycode.xs »
1 package Net::IDN::Punycode;
2  
3 13 ▶use 5.006;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 13 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 13 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 13 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 13 ▶use Exporter;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 13 our $VERSION = "2.502";
12 13 $VERSION = eval $VERSION;
13  
14 13 our @ISA = qw(Exporter);
15 13 our @EXPORT = ();
16 13 our @EXPORT_OK = ();
17 13 our %EXPORT_TAGS = ( 'all' => [ qw(encode_punycode decode_punycode) ], );
18 13 Exporter::export_ok_tags(keys %EXPORT_TAGS);
19 13 our $_NO_XS;
20  
21 13 eval {
22 13 ▶ die if $_NO_XS;
Branch: 1 branch
BranchTrueFalseTotal
if $Net::IDN::Punycode::_NO_XS 0 13 13
23 13 require XSLoader;
24 13 XSLoader::load('Net::IDN::Punycode');
25 };
26  
27 13 ▶if (!defined(&encode_punycode)) {
Branch: 1 branch
BranchTrueFalseTotal
unless (defined &Net::IDN::Punycode::encode_punycode) 0 13 13
28 0 require Net::IDN::Punycode::PP;
29 0 Net::IDN::Punycode::PP->import(qw(:all));
30 }
31  
32 13 1;
33 __END__
« blib/lib/Net/IDN/UTS46/_Mapping.pm ↑ Summary lib/Net/IDN/Punycode.xs »