File Coverage

blib/lib/Location/Area/DoCoMo/iArea/Area.pm
Criterion Covered Total %
statement 3 23 13.0
branch 0 8 0.0
condition n/a
subroutine 1 2 50.0
pod 0 1 0.0
total 4 34 11.7


line stmt bran cond sub pod time code
1             package Location::Area::DoCoMo::iArea::Area;
2            
3 1     1   9 use strict;
  1         3  
  1         709  
4             require Location::Area::DoCoMo::iArea::Aura;
5            
6             sub seek
7             {
8 0     0 0   shift;
9 0           my $arg = shift;
10 0           my $useAdjustedAura = shift;
11 0           seek DATA,0,0;
12 0           my ($aid,$said,$name,$wara,$sara,$eara,$nara,$mesh,$meshcache);
13 0 0         if ($arg =~ /^\d{5}$/)
14             {
15 0           ($aid,$said) = $arg =~ /^(\d{3})(\d{2})$/;
16 0           while (my $line = )
17             {
18 0           my @scan = $line =~ /^$aid,$said,([^,]+),(\d{8,9}),(\d{8,9}),(\d{8,9}),(\d{8,9}),(.*)$/;
19 0 0         if (@scan)
20             {
21 0           ($name,$wara,$sara,$eara,$nara,$meshcache) = @scan;
22 0           last;
23             }
24             }
25             }
26             else
27             {
28 0           my ($m2,$m3,$m4,$m5,$m6,$m7) = $arg =~ /^(\d{6})(\d?)(\d?)(\d?)(\d?)(\d?)$/;
29 0           while (my $line = )
30             {
31 0           my @scan = $line =~ /^(\d{3}),(\d{2}),([^,]+),(\d{8,9}),(\d{8,9}),(\d{8,9}),(\d{8,9}),(.*,(${m2}(${m3}(${m4}(${m5}(${m6}${m7}?)?)?)?)?),.*)$/;
32 0 0         if (@scan)
33             {
34 0           ($aid,$said,$name,$wara,$sara,$eara,$nara,$meshcache,$mesh) = @scan;
35 0           last;
36             }
37             }
38             }
39 0 0         ($wara,$sara,$eara,$nara) = Location::Area::DoCoMo::iArea::Aura->seek($aid,$said) if ($useAdjustedAura);
40             return {
41 0           areaid => $aid,
42             sub_areaid => $said,
43             name => $name,
44             west => $wara,
45             south => $sara,
46             east => $eara,
47             north => $nara,
48             meshcache => $meshcache,
49             };
50             }
51            
52             1;
53             __DATA__