DOM/_FieldHash.pm

filter: Statementstmt 70.0% 7 / 10 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 69.2% 9 / 13 SCAR 7.6
CC
2
Cov
67%
BEGIN
2.5
CRAP 2.1
« DOM/Event/Mutation.pm ↑ Summary DOM/NodeList.pm »
1 package HTML::DOM::_FieldHash;
2  
3 28 our $VERSION = '0.057';
4  
5 BEGIN {
6 28 ▶ if(eval { require Hash::Util::FieldHash }) {
Subroutine BEGIN: called CC=2 SCAR=9.2
Branch: 1 branch
BranchTrueFalseTotal
if (eval { do { require Hash::Util::FieldHash } }) { } 28 0 28
7 28 import Hash::Util::FieldHash qw < fieldhashes >;
8 } else {
9 0 require Tie::RefHash::Weak;
10 0 VERSION Tie::RefHash::Weak 0.08; # fieldhashes
11 0 import Tie::RefHash::Weak qw < fieldhashes >;
12 }
13 }
14  
15 28 @ISA = Exporter;
16 28 @EXPORT = 'fieldhashes';
17 28 require Exporter;
« DOM/Event/Mutation.pm ↑ Summary DOM/NodeList.pm »