lib/HTML/Object/DOM/Element/HR.pm

filter: Statementstmt 93.5% 29 / 31 Branchbran 50.0% 2 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 81.8% 9 / 11 Podpod 100% 3 / 3 totaltotal 87.7% 43 / 49 CC 3 SCAR 4.9
CC
3
Cov
89%
init
3.1
color
2.0
noshade
2.0
CRAP 1.6
« lib/HTML/Object/DOM/Element/Head.pm ↑ Summary lib/HTML/Object/DOM/Element/Span.pm »
1 ##----------------------------------------------------------------------------
2 ## HTML Object - ~/lib/HTML/Object/DOM/Element/HR.pm
3 ## Version v0.2.0
4 ## Copyright(c) 2022 DEGUEST Pte. Ltd.
5 ## Author: Jacques Deguest <jack@deguest.jp>
6 ## Created 2022/01/06
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::HR;
15 BEGIN
16 {
17 2 ▶ use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 2 ▶ use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
19 2 ▶ warnings::register_categories( 'HTML::Object' );
Subroutine BEGIN: called CC=1 SCAR=0.0
20 2 ▶ use parent qw( HTML::Object::DOM::Element );
Subroutine BEGIN: called CC=1 SCAR=0.0
21 2 ▶ use vars qw( $VERSION );
Subroutine BEGIN: called CC=1 SCAR=0.0
22 2 ▶ use HTML::Object::DOM::Element::Shared qw( :hr );
Subroutine BEGIN: called CC=1 SCAR=0.0
23 2 our $VERSION = 'v0.2.0';
24 };
25  
26 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
27 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
28  
29 sub init
30 {
31 1 ▶ my $self = shift( @_ );
Subroutine init: called CC=3 SCAR=11.3
Pod documented
32 1 $self->{_init_strict_use_sub} = 1;
33 1 ▶ $self->SUPER::init( @_ ) || return( $self->pass_error );
Branch: 1 branch
BranchTrueFalseTotal
$self->SUPER::init(@_) or return $self->pass_error 0 1 1
34 1 ▶ $self->{tag} = 'hr' if( !CORE::length( "$self->{tag}" ) );
Branch: 1 branch
BranchTrueFalseTotal
unless length qq[$self->{"tag"}] 0 1 1
35 1 return( $self );
36 }
37  
38 # Note: property align is inherited
39  
40 # Note: property color
41 0 ▶sub color : lvalue { return( shift->_set_get_property( 'color', @_ ) ); }
Subroutine color: not called CC=1 SCAR=6.9
Pod documented
42  
43 # Note: property noshade
44 0 ▶sub noshade : lvalue { return( shift->_set_get_property({ attribute => 'noshade', is_boolean => 1 }, @_ ) ); }
Subroutine noshade: not called CC=1 SCAR=6.9
Pod documented
45  
46 # Note: property size is inherited
47  
48 # Note: property width is inherited
49  
50 2 1;
51 # NOTE: POD
52 __END__
« lib/HTML/Object/DOM/Element/Head.pm ↑ Summary lib/HTML/Object/DOM/Element/Span.pm »