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

filter: Statementstmt 82.8% 29 / 35 Branchbran 50.0% 2 / 4 Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 60.0% 9 / 15 Podpod 100% 7 / 7 totaltotal 72.7% 48 / 66 CC 4 SCAR 7.6
CC
4
Cov
76%
init
4.6
ch
2.0
chOff
2.0
CRAP 2.1
« blib/lib/HTML/Object/DOM/Element/Body.pm ↑ Summary lib/HTML/Object/DOM/Element/Unknown.pm »
1 ##----------------------------------------------------------------------------
2 ## HTML Object - ~/lib/HTML/Object/DOM/Element/TableCol.pm
3 ## Version v0.2.0
4 ## Copyright(c) 2022 DEGUEST Pte. Ltd.
5 ## Author: Jacques Deguest <jack@deguest.jp>
6 ## Created 2022/01/08
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::TableCol;
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( :tablecol );
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=4 SCAR=15.2
Pod documented
32 # Can either be col or colgroup
33 1 ▶ $self->{tag} = 'colgroup' if( !defined( $self->{tag} ) || !CORE::length( "$self->{tag}" ) );
Branch: 1 branch
BranchTrueFalseTotal
unless defined $self->{"tag"} and length qq[$self->{"tag"}] 1 0 1
Condition33%1/3
defined $self->{"tag"} and length qq[$self->{"tag"}]
!ll&&!rl&&r
100
MC/DC0%0/2
defined $self->{"tag"} and length qq[$self->{"tag"}]
defined $self->{"tag"} length qq[$self->{"tag"}]
Truth table33%1/3
A and B
A= defined $self->{"tag"}B= length qq[$self->{"tag"}]
ABresult
0X0
100
111
34 1 $self->{_init_strict_use_sub} = 1;
35 1 ▶ $self->SUPER::init( @_ ) || return( $self->pass_error );
Branch: 1 branch
BranchTrueFalseTotal
$self->SUPER::init(@_) or return $self->pass_error 0 1 1
36 1 return( $self );
37 }
38  
39 # Note: deprecated property align is inherited
40  
41 # Note: deprecated property ch
42 0 ▶sub ch : lvalue { return( shift->_set_get_property( 'ch', @_ ) ); }
Subroutine ch: not called CC=1 SCAR=6.9
Pod documented
43  
44 # Note: deprecated property chOff
45 0 ▶sub chOff : lvalue { return( shift->_set_get_property( 'choff', @_ ) ); }
Subroutine chOff: not called CC=1 SCAR=6.9
Pod documented
46  
47 0 ▶sub choff : lvalue { return( shift->chOff( @_ ) ); }
Subroutine choff: not called CC=1 SCAR=6.9
Pod documented
48  
49 # Note: property span
50 0 ▶sub span : lvalue { return( shift->_set_get_property( 'span', @_ ) ); }
Subroutine span: not called CC=1 SCAR=6.9
Pod documented
51  
52 # Note: deprecated property vAlign
53 0 ▶sub vAlign : lvalue { return( shift->_set_get_property( 'valign', @_ ) ); }
Subroutine vAlign: not called CC=1 SCAR=6.9
Pod documented
54  
55 0 ▶sub valign : lvalue { return( shift->vAlign( @_ ) ); }
Subroutine valign: not called CC=1 SCAR=6.9
Pod documented
56  
57 # Note: deprecated property width is inherited
58  
59 2 1;
60 # NOTE: POD
61 __END__
« blib/lib/HTML/Object/DOM/Element/Body.pm ↑ Summary lib/HTML/Object/DOM/Element/Unknown.pm »