Object/Exception.pm

filter: Statementstmt 82.1% 46 / 56 Branchbran n/a Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 45.4% 15 / 33 Podpod 100% 10 / 10 totaltotal 68.2% 71 / 104 CC 2 SCAR 4.4
CC
2
Cov
78%
name
6.0
columnNumber
2.0
colno
2.0
CRAP 1.6
« Object/DOM/Element/Paragraph.pm ↑ Summary Object/DOM/Element/Anchor.pm »
1 ##----------------------------------------------------------------------------
2 ## HTML Object - ~/lib/HTML/Object/Exception.pm
3 ## Version v0.2.0
4 ## Copyright(c) 2021 DEGUEST Pte. Ltd.
5 ## Author: Jacques Deguest <jack@deguest.jp>
6 ## Created 2021/11/27
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::Exception;
15 BEGIN
16 36 ▶{
Subroutine BEGIN: called CC=1 SCAR=0.0
17 36 ▶ use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 36 ▶ use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
19 36 warnings::register_categories( 'HTML::Object' );
20 36 ▶ use parent qw( Module::Generic::Exception );
Subroutine BEGIN: called CC=1 SCAR=0.0
21 36 ▶ use vars qw( $VERSION );
Subroutine BEGIN: called CC=1 SCAR=0.0
22 36 our $VERSION = 'v0.2.0';
23 };
24  
25 36 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
26 36 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
27  
28 0 ▶sub columnNumber { return( shift->_set_get_number( 'column', @_ ) ); }
Subroutine columnNumber: not called CC=1 SCAR=6.9
Pod documented
29  
30 0 ▶sub colno { return( shift->columnNumber( @_ ) ); }
Subroutine colno: not called CC=1 SCAR=6.9
Pod documented
31  
32 0 ▶sub fileName { return( shift->file( @_ ) ); }
Subroutine fileName: not called CC=1 SCAR=6.9
Pod documented
33  
34 0 ▶sub filename { return( shift->file( @_ ) ); }
Subroutine filename: not called CC=1 SCAR=6.9
Pod documented
35  
36 0 ▶sub lineNumber { return( shift->line( @_ ) ); }
Subroutine lineNumber: not called CC=1 SCAR=6.9
Pod documented
37  
38 0 ▶sub lineno { return( shift->line( @_ ) ); }
Subroutine lineno: not called CC=1 SCAR=6.9
Pod documented
39  
40 0 ▶sub name { return( ref( $_[0] ) || $_[0] ); }
Subroutine name: not called CC=2 SCAR=17.9
Pod documented
Condition0%0/3
ref $_[0] || $_[0]
l!l&&r!l&&!r
000
MC/DC0%0/2
ref $_[0] || $_[0]
ref $_[0] $_[0]
Truth table0%0/3
A || B
A= ref $_[0]B= $_[0]
ABresult
1X1
011
000
41  
42 0 ▶sub stack { return( shift->trace ); }
Subroutine stack: not called CC=1 SCAR=6.9
Pod documented
43  
44 0 ▶sub toLocalString { return( shift->as_string ); }
Subroutine toLocalString: not called CC=1 SCAR=6.9
Pod documented
45  
46 0 ▶sub toString { return( shift->as_string ); }
Subroutine toString: not called CC=1 SCAR=6.9
Pod documented
47  
48 {
49 package
50 HTML::Object::HierarchyRequestError;
51 BEGIN
52 {
53 36 ▶ use parent -norequire, qw( HTML::Object::Exception );
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: not called CC=1 SCAR=0.0
54 };
55  
56 package HTML::Object::IndexSizeError;
57 BEGIN
58 {
59 36 ▶ use parent -norequire, qw( HTML::Object::Exception );
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: not called CC=1 SCAR=0.0
60 };
61  
62 package
63 HTML::Object::InvalidCharacterError;
64 BEGIN
65 {
66 36 ▶ use parent -norequire, qw( HTML::Object::Exception );
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: not called CC=1 SCAR=0.0
67 };
68  
69 package
70 HTML::Object::InvalidStateError;
71 BEGIN
72 {
73 36 ▶ use parent -norequire, qw( HTML::Object::Exception );
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: not called CC=1 SCAR=0.0
74 };
75  
76 package HTML::Object::MediaError;
77 BEGIN
78 {
79 36 ▶ use parent -norequire, qw( HTML::Object::Exception );
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: not called CC=1 SCAR=0.0
80 };
81  
82 package HTML::Object::NotFoundError;
83 BEGIN
84 {
85 36 ▶ use parent -norequire, qw( HTML::Object::Exception );
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: not called CC=1 SCAR=0.0
86 };
87  
88 package
89 HTML::Object::SyntaxError;
90 BEGIN
91 {
92 36 ▶ use parent -norequire, qw( HTML::Object::Exception );
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: not called CC=1 SCAR=0.0
93 };
94  
95 package
96 HTML::Object::TypeError;
97 BEGIN
98 {
99 36 ▶ use parent -norequire, qw( HTML::Object::Exception );
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: not called CC=1 SCAR=0.0
100 };
101 }
102  
103 36 1;
104 # NOTE: POD
105 __END__
« Object/DOM/Element/Paragraph.pm ↑ Summary Object/DOM/Element/Anchor.pm »