lib/Geo/Coder/Free/DB/admin1.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 5 | 5 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 2 | 2 | 100.0 |
pod | n/a | ||
total | 7 | 7 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Geo::Coder::Free::DB::admin1; | ||||||
2 | |||||||
3 | # admin1.db is from http://download.geonames.org/export/dump/admin1CodesASCII.txt | ||||||
4 | |||||||
5 | 4 | 4 | 79505 | use Geo::Coder::Free::DB; | |||
4 | 11 | ||||||
4 | 270 | ||||||
6 | |||||||
7 | our @ISA = ('Geo::Coder::Free::DB'); | ||||||
8 | |||||||
9 | sub _open { | ||||||
10 | 15 | 15 | 36 | my $self = shift; | |||
11 | |||||||
12 | 15 | 96 | return $self->SUPER::_open(sep_char => "\t", column_names => ['concatenated_codes', 'name', 'asciiname', 'geonameId']); | ||||
13 | } | ||||||
14 | |||||||
15 | 1; |