DOM/Event/UI.pm

filter: Statementstmt 100% 25 / 25 Branchbran 75.0% 3 / 4 Conditioncond 33.3% 16 / 48 MC/DCmcdc 0.0% 0 / 17 Subroutinesub 100% 7 / 7 Podpod 100% 4 / 4 totaltotal 52.3% 55 / 105 SCAR 8.4
CC
2
Cov
57%
view
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.3
« DOM/Text.pm ↑ Summary DOM/Event/Mutation.pm »
1 package HTML::DOM::Event::UI;
2  
3 7 our $VERSION = '0.057';
4  
5 7 ▶use warnings; no warnings qw 'utf8 parenthesis';
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
6 7 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 7 require HTML::DOM::Event;
9 7 our @ISA = HTML::DOM::Event::;
10  
11  
12 14 ▶sub view { $_[0]{view }||() }
Subroutine view: called CC=2 SCAR=6.9
Pod documented
Branch: 1 branch
BranchTrueFalseTotal
$_[0]{"view"} or () 1 13 14
13 30 ▶sub detail { $_[0]{detail } }
Subroutine detail: called CC=1 SCAR=0.0
Pod documented
14  
15 sub initUIEvent {
16 1 ▶ my $self = $_[0];
Subroutine initUIEvent: called CC=1 SCAR=0.0
Pod documented
17 1 my $x;
18 1 $self->init(map +($_ => $_[++$x]),
19 qw( type propagates_up cancellable view detail )
20 );
21 1 return;
22 }
23  
24 sub init {
25 50 ▶ my $self = shift;
Subroutine init: called CC=1 SCAR=0.0
Pod documented
26 50 my %args = @_;
27 50 my %my_args = map +($_ => delete $args{$_}),
28 qw( view detail );
29 50 $self->SUPER::init(%args);
30 50 %$self = (%$self, %my_args);
31 50 return;
32 }
33  
34  
35 7 ▶*|||*|||*|||*|||*|||*|||*|||*|||*|||*|||*|||*|||*|||*|||*|||*|||*|||*|
Branch: 1 branch
BranchTrueFalseTotal
*| or *| or *| or *| or *| or *| or *| or *| or *| or *| or *| or *| or *| or *| or *| or *| or *| or *| 0 7 7
Condition33%16/48
*| or *| or *| or *| or *| or *| or *| or *| or *| or *| or *| or *| or *| or *| or *| or *| or *|
l!l&&r!l&&!r
700
*| or *| or *| or *| or *| or *| or *| or *| or *| or *| or *| or *| or *| or *| or *| or *|
l!l&&r!l&&!r
700
*| or *| or *| or *| or *| or *| or *| or *| or *| or *| or *| or *| or *| or *| or *|
l!l&&r!l&&!r
700
*| or *| or *| or *| or *| or *| or *| or *| or *| or *| or *| or *| or *| or *|
l!l&&r!l&&!r
700
*| or *| or *| or *| or *| or *| or *| or *| or *| or *| or *| or *| or *|
l!l&&r!l&&!r
700
*| or *| or *| or *| or *| or *| or *| or *| or *| or *| or *| or *|
l!l&&r!l&&!r
700
*| or *| or *| or *| or *| or *| or *| or *| or *| or *| or *|
l!l&&r!l&&!r
700
*| or *| or *| or *| or *| or *| or *| or *| or *| or *|
l!l&&r!l&&!r
700
*| or *| or *| or *| or *| or *| or *| or *| or *|
l!l&&r!l&&!r
700
*| or *| or *| or *| or *| or *| or *| or *|
l!l&&r!l&&!r
700
*| or *| or *| or *| or *| or *| or *|
l!l&&r!l&&!r
700
*| or *| or *| or *| or *| or *|
l!l&&r!l&&!r
700
*| or *| or *| or *| or *|
l!l&&r!l&&!r
700
*| or *| or *| or *|
l!l&&r!l&&!r
700
*| or *| or *|
l!l&&r!l&&!r
700
*| or *|
l!l&&r!l&&!r
700
MC/DC0%0/17
*| or *| or *| or *| or *| or *| or *| or *| or *| or *| or *| or *| or *| or *| or *| or *| or *|
too many conditions
36  
37 __END__
« DOM/Text.pm ↑ Summary DOM/Event/Mutation.pm »