OpenCellID/Base.pm

filter: Statementstmt 88.8% 16 / 18 Branchbran n/a Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 80.0% 4 / 5 Podpod 100% 3 / 3 totaltotal 77.4% 24 / 31 CC 2 SCAR 4.2
CC
2
Cov
81%
new
2.0
parent
2.0
BEGIN
1.0
CRAP 1.5
« OpenCellID/Response/cell.pm ↑ Summary OpenCellID/Response/cell/getMeasures.pm »
1 package Geo::WebService::OpenCellID::Base;
2 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 4 our $VERSION = '0.06';
5  
6 =head1 NAME
7  
8 Geo::WebService::OpenCellID::Base - Perl API for the opencellid.org database
9  
10 =head1 SYNOPSIS
11  
12 use base qw{Geo::WebService::OpenCellID::Base};
13  
14 =head1 DESCRIPTION
15  
16 =head1 USAGE
17  
18 =head1 CONSTRUCTOR
19  
20 =head2 new
21  
22 =cut
23  
24 9 ▶sub new {
Subroutine new: called CC=2 SCAR=7.1
Pod documented
25 9 my $this = shift();
26 9 ▶ my $class = ref($this) || $this;
Condition33%1/3
ref $this || $this
l!l&&r!l&&!r
090
MC/DC0%0/2
ref $this || $this
ref $this $this
Truth table33%1/3
A || B
A= ref $thisB= $this
ABresult
1X1
011
000
27 9 my $self = {};
28 9 bless $self, $class;
29 9 $self->initialize(@_);
30 9 return $self;
31 }
32  
33 =head2 initialize
34  
35 =cut
36  
37 9 ▶sub initialize {
Subroutine initialize: called CC=1 SCAR=0.0
Pod documented
38 9 my $self = shift();
39 9 %$self=@_;
40 }
41  
42 =head1 METHODS
43  
44 =head2 parent
45  
46 =cut
47  
48 0 ▶sub parent {
Subroutine parent: not called CC=1 SCAR=6.9
Pod documented
49 0 my $self=shift;
50 0 return $self->{"parent"};
51 }
52  
53 =head1 COPYRIGHT
54  
55 Copyright (c) 2025 Michael R. Davis
56  
57 This program is free software; you can redistribute
58 it and/or modify it under the same terms as Perl itself.
59  
60 The full text of the license can be found in the
61 LICENSE file included with this module.
62  
63 =cut
64  
65 4 1;
« OpenCellID/Response/cell.pm ↑ Summary OpenCellID/Response/cell/getMeasures.pm »