Map/Tube/Table.pm

filter: Statementstmt 92.5% 25 / 27 Branchbran n/a Conditioncond 0.0% 0 / 4 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 87.5% 7 / 8 Podpod 0.0% 0 / 1 totaltotal 76.1% 32 / 42 CC 3 SCAR 14.6
CC
3
Cov
81%
as_string
12.0
BEGIN
1.0
BEGIN
1.0
CRAP 4.3
« Map/Tube/Line.pm ↑ Summary Map/Tube/Cookbook.pm »
1 package Map::Tube::Table;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use version;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 our $VERSION = qv('v5.2.0');
8 1 our $AUTHORITY = 'cpan:MANWAR';
9  
10 =head1 NAME
11  
12 Map::Tube::Table - Class to represent the table in the map.
13  
14 =head1 VERSION
15  
16 Version v5.2.0
17  
18 =cut
19  
20 1 ▶use v5.14;
Subroutine BEGIN: called CC=1 SCAR=0.0
21 1 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
22 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
23  
24 1 ▶use overload q{""} => 'as_string', fallback => 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
25  
26 1 has id => (is => 'ro', required => 1);
27 1 has [ qw(path length) ] => (is => 'rw');
28  
29 0 ▶sub as_string {
Subroutine as_string: not called CC=3 SCAR=24.8
Pod undocumented
30 0 my ($self) = @_;
31 0 ▶ return sprintf("[id:%s, path:%s, length:%s]",
Condition0%0/4
$self->path || ''
l!l
00
$self->length || ''
l!l
00
MC/DC0%0/1
$self->path || ''
$self->path
MC/DC0%0/1
$self->length || ''
$self->length
Truth table0%0/2
A
A= $self->path
Aresult
11
00
Truth table0%0/2
A
A= $self->length
Aresult
11
00
32 $self->id, $self->path||'', $self->length||'');
33 }
34  
35 =head1 DESCRIPTION
36  
37 B<FOR INTERNAL USE ONLY>.
38  
39 =head1 AUTHOR
40  
41 Mohammad Sajid Anwar, C<< <mohammad.anwar at yahoo.com> >>
42  
43 =head1 REPOSITORY
44  
45 L<https://github.com/manwar/Map-Tube>
46  
47 =head1 BUGS
48  
49 Please report any bugs or feature requests through the web interface at L<https://github.com/manwar/Map-Tube/issues>.
50 I will be notified and then you'll automatically be notified of progress on your
51 bug as I make changes.
52  
53 =head1 SUPPORT
54  
55 You can find documentation for this module with the perldoc command.
56  
57 perldoc Map::Tube::Table
58  
59 You can also look for information at:
60  
61 =over 4
62  
63 =item * BUG Report
64  
65 L<https://github.com/manwar/Map-Tube/issues>
66  
67 =item * Search MetaCPAN
68  
69 L<https://metacpan.org/dist/Map-Tube/>
70  
71 =back
72  
73 =head1 LICENSE AND COPYRIGHT
74  
75 Copyright (C) 2010 - 2026 Mohammad Sajid Anwar.
76  
77 This program is free software; you can redistribute it and/or modify it under
78 the terms of the the Artistic License (2.0). You may obtain a copy of the full
79 license at:
80  
81 L<http://www.perlfoundation.org/artistic_license_2_0>
82  
83 Any use, modification, and distribution of the Standard or Modified Versions is
84 governed by this Artistic License.By using, modifying or distributing the Package,
85 you accept this license. Do not use, modify, or distribute the Package, if you do
86 not accept this license.
87  
88 If your Modified Version has been derived from a Modified Version made by someone
89 other than you,you are nevertheless required to ensure that your Modified Version
90 complies with the requirements of this license.
91  
92 This license does not grant you the right to use any trademark, service mark,
93 tradename, or logo of the Copyright Holder.
94  
95 This license includes the non-exclusive, worldwide, free-of-charge patent license
96 to make, have made, use, offer to sell, sell, import and otherwise transfer the
97 Package with respect to any patent claims licensable by the Copyright Holder that
98 are necessarily infringed by the Package. If you institute patent litigation
99 (including a cross-claim or counterclaim) against any party alleging that the
100 Package constitutes direct or contributory patent infringement,then this Artistic
101 License to you shall terminate on the date that such litigation is filed.
102  
103 Disclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER AND
104 CONTRIBUTORS "AS IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. THE IMPLIED
105 WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
106 NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY YOUR LOCAL LAW. UNLESS
107 REQUIRED BY LAW, NO COPYRIGHT HOLDER OR CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT,
108 INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE
109 OF THE PACKAGE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
110  
111 =cut
112  
113 1 1; # End of Map::Tube::Table
« Map/Tube/Line.pm ↑ Summary Map/Tube/Cookbook.pm »