DBI/Primitive/Node.pm untested

filter: Statementstmt 0.0% 0 / 26 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 35 CC 2 SCAR 11.5
CC
2
Cov
0%
new
6.0
BEGIN
2.0
BEGIN
2.0
CRAP 3.1
1 # Encoding and name #_{
2  
3 =encoding utf8
4 =head1 NAME
5  
6 Geo::OSM::DBI::Primitive::Node - Derivation of L<< Geo::OSM::Primitive::Node >> and L<<Geo::OSM::DBI::Primitive >>, to be used with L<< Geo::OSM::DBI >>.
7  
8 =cut
9 package Geo::OSM::DBI::Primitive::Node;
10 #_}
11 #_{ use …
12 use warnings;
13 use strict;
14  
15 use utf8;
16 use Carp;
17  
18 use Geo::OSM::Primitive::Node;
19 our @ISA=qw(Geo::OSM::Primitive::Node Geo::OSM::DBI::Primitive);
20  
21 #_}
22 our $VERSION = 0.01;
23 #_{ Synopsis
24  
25 =head1 SYNOPSIS
26  
27 …
28  
29 =cut
30 #_}
31 #_{ Overview
32  
33 =head1 OVERVIEW
34  
35 …
36  
37 =cut
38  
39 #_}
40 #_{ Methods
41  
42 =head1 METHODS
43 =cut
44  
45 sub new { #_{
46 #_{ POD
47  
48 =head2 new
49  
50 my $osm_dbi = Geo::OSM::DBI->new(…);
51  
52 new($osm_way_id, $osm_dbi, $lat, $lon);
53  
54 =cut
55  
56 #_}
57  
58 my $class = shift;
59 my $id = shift;
60 my $osm_dbi = shift;
61 my $lat = shift;
62 my $lon = shift;
63  
64 my $self = $class->SUPER::new($id, $lat, $lon);
65  
66 croak "not a Geo::OSM::DBI::Primitive::Node" unless $self -> isa('Geo::OSM::DBI::Primitive::Node');
67  
68 $self->_init_geo_osm_dbi_primitive($osm_dbi);
69  
70 return $self;
71  
72 } #_}
73 #_}
74 #_{ POD: Copyright and license
75  
76 =head1 COPYRIGHT and LICENSE
77  
78 Copyright © 2017 René Nyffenegger, Switzerland. All rights reserved.
79  
80 This program is free software; you can redistribute it and/or modify it
81 under the terms of the the Artistic License (2.0). You may obtain a
82 copy of the full license at: L<http://www.perlfoundation.org/artistic_license_2_0>
83  
84 =cut
85  
86 #_}
87 #_{ POD: Source Code
88  
89 =head1 SOURCE CODE
90  
91 The source code is on L<< github|https://github.com/ReneNyffenegger/perl-Geo-OSM-DBI >>. Meaningful pull requests are welcome.
92  
93 =cut
94  
95 #_}