NavMenu/NodeDescription.pm

filter: Statementstmt 100% 16 / 16 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 22 / 22 CC 2 SCAR 3.4
CC
2
Cov
100%
_init
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.4
« NavMenu/Iterator/SiteMap.pm ↑ Summary NavMenu/Error.pm »
1 package HTML::Widgets::NavMenu::NodeDescription;
2 16 $HTML::Widgets::NavMenu::NodeDescription::VERSION = '1.1000';
3 16 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 16 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 16 ▶use parent qw(HTML::Widgets::NavMenu::Object);
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 16 __PACKAGE__->mk_acc_ref( [qw(host host_url title label direct_url url_type)] );
9  
10 sub _init
11 238 ▶{
Subroutine _init: called CC=2 SCAR=6.9
12 238 my ( $self, $args ) = @_;
13  
14 238 ▶ while ( my ( $k, $v ) = each(%$args) )
Branch: 1 branch
BranchTrueFalseTotal
if (() = each %$args) 1428 238 1666
15 {
16 1428 $self->$k($v);
17 }
18  
19 238 return 0;
20 }
21  
22 16 1;
23  
24 __END__
« NavMenu/Iterator/SiteMap.pm ↑ Summary NavMenu/Error.pm »