OpenCellID/Response/cell.pm

filter: Statementstmt 60.0% 12 / 20 Branchbran n/a Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 42.8% 3 / 7 Podpod 100% 4 / 4 totaltotal 52.7% 19 / 36 CC 2 SCAR 9.7
CC
2
Cov
52%
cellid
6.0
mnc
2.0
mcc
2.0
CRAP 2.6
« OpenCellID.pm ↑ Summary OpenCellID/Base.pm »
1 package Geo::WebService::OpenCellID::Response::cell;
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 ▶use base qw{Geo::WebService::OpenCellID::Response};
Subroutine BEGIN: called CC=1 SCAR=0.0
5 4 our $VERSION = '0.06';
6  
7 =head1 NAME
8  
9 Geo::WebService::OpenCellID::Response::cell - Perl API for the opencellid.org database
10  
11 =head1 SYNOPSIS
12  
13 =head1 DESCRIPTION
14  
15 Perl Interface to the database at http://www.opencellid.org/
16  
17 =head1 USAGE
18  
19 =head1 METHODS
20  
21 =head2 mnc
22  
23 =cut
24  
25 0 ▶sub mnc {
Subroutine mnc: not called CC=1 SCAR=6.9
Pod documented
26 0 my $self=shift;
27 0 return $self->{"data"}->{"cell"}->[0]->{"mnc"};
28 }
29  
30 =head2 mcc
31  
32 =cut
33  
34 0 ▶sub mcc {
Subroutine mcc: not called CC=1 SCAR=6.9
Pod documented
35 0 my $self=shift;
36 0 return $self->{"data"}->{"cell"}->[0]->{"mcc"};
37 }
38  
39 =head2 lac
40  
41 =cut
42  
43 0 ▶sub lac {
Subroutine lac: not called CC=1 SCAR=6.9
Pod documented
44 0 my $self=shift;
45 0 return $self->{"data"}->{"cell"}->[0]->{"lac"};
46 }
47  
48 =head2 cellid, cellId
49  
50 =cut
51  
52 4 *cellId=\&cellid;
53  
54 0 ▶sub cellid {
Subroutine cellid: not called CC=2 SCAR=17.9
Pod documented
55 0 my $self=shift;
56 0 ▶ return $self->{"data"}->{"cell"}->[0]->{"cellid"} || $self->{"data"}->{"cell"}->[0]->{"cellId"};
Condition0%0/3
$self->{'data'}{'cell'}[0]{'cellid'} || $self->{'data'}{'cell'}[0]{'cellId'}
l!l&&r!l&&!r
000
MC/DC0%0/2
$self->{'data'}{'cell'}[0]{'cellid'} || $self->{'data'}{'cell'}[0]{'cellId'}
$self->{'data'}{'cell'}[0]{'cellid'} $self->{'data'}{'cell'}[0]{'cellId'}
Truth table0%0/3
A || B
A= $self->{'data'}{'cell'}[0]{'cellid'}B= $self->{'data'}{'cell'}[0]{'cellId'}
ABresult
1X1
011
000
57 }
58  
59 =head1 COPYRIGHT
60  
61 Copyright (c) 2025 Michael R. Davis
62  
63 This program is free software; you can redistribute
64 it and/or modify it under the same terms as Perl itself.
65  
66 The full text of the license can be found in the
67 LICENSE file included with this module.
68  
69 =cut
70  
71 4 1;
« OpenCellID.pm ↑ Summary OpenCellID/Base.pm »