Object/DOM/Element/HTML.pm

filter: Statementstmt 96.5% 28 / 29 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 90.0% 9 / 10 Podpod 100% 2 / 2 totaltotal 93.0% 40 / 43 CC 2 SCAR 2.4
CC
2
Cov
94%
init
2.0
version
2.0
BEGIN
1.0
CRAP 1.3
« Object/Closing.pm ↑ Summary Object/DOM/NodeIterator.pm »
1 ##----------------------------------------------------------------------------
2 ## HTML Object - ~/lib/HTML/Object/DOM/Element/HTML.pm
3 ## Version v0.2.0
4 ## Copyright(c) 2022 DEGUEST Pte. Ltd.
5 ## Author: Jacques Deguest <jack@deguest.jp>
6 ## Created 2022/01/05
7 ## Modified 2022/09/18
8 ## All rights reserved.
9 ##
10 ##
11 ## This program is free software; you can redistribute it and/or modify it
12 ## under the same terms as Perl itself.
13 ##----------------------------------------------------------------------------
14 package HTML::Object::DOM::Element::HTML;
15 BEGIN
16 18 ▶{
Subroutine BEGIN: called CC=1 SCAR=0.0
17 18 ▶ use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 18 ▶ use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
19 18 warnings::register_categories( 'HTML::Object' );
20 18 ▶ use parent qw( HTML::Object::DOM::Element );
Subroutine BEGIN: called CC=1 SCAR=0.0
21 18 ▶ use vars qw( $VERSION );
Subroutine BEGIN: called CC=1 SCAR=0.0
22 18 ▶ use HTML::Object::DOM::Element::Shared qw( :anchor );
Subroutine BEGIN: called CC=1 SCAR=0.0
23 18 our $VERSION = 'v0.2.0';
24 };
25  
26 18 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
27 18 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
28  
29 sub init
30 28 ▶{
Subroutine init: called CC=2 SCAR=7.0
Pod documented
31 28 my $self = shift( @_ );
32 28 $self->{_init_strict_use_sub} = 1;
33 28 ▶ $self->SUPER::init( @_ ) || return( $self->pass_error );
Branch: 1 branch
BranchTrueFalseTotal
$self->SUPER::init(@_) or return $self->pass_error 28 0 28
34 28 return( $self );
35 }
36  
37 # Note: property version
38 0 ▶sub version : lvalue { return( shift->_set_get_property( 'version', @_ ) ); }
Subroutine version: not called CC=1 SCAR=6.9
Pod documented
39  
40 18 1;
41 # NOTE: POD
42 __END__
« Object/Closing.pm ↑ Summary Object/DOM/NodeIterator.pm »