File Coverage

blib/lib/Map/Metro/Plugin/Map/Helsinki.pm
Criterion Covered Total %
statement 12 13 92.3
branch n/a
condition n/a
subroutine 5 6 83.3
pod 0 2 0.0
total 17 21 80.9


line stmt bran cond sub pod time code
1 1     1   3745 use 5.10.0;
  1         2  
2 1     1   5 use strict;
  1         2  
  1         24  
3 1     1   4 use warnings;
  1         2  
  1         79  
4              
5             package Map::Metro::Plugin::Map::Helsinki;
6              
7             # ABSTRACT: Map::Metro map for Helsinki
8             our $AUTHORITY = 'cpan:CSSON'; # AUTHORITY
9             our $VERSION = '0.1987';
10              
11 1     1   5 use Moose;
  1         2  
  1         9  
12             with 'Map::Metro::Plugin::Map';
13              
14             has '+mapfile' => (
15             default => 'map-helsinki.metro',
16             );
17             sub map_version {
18 0     0 0 0 return $VERSION;
19             }
20             sub map_package {
21 3     3 0 11 return __PACKAGE__;
22             }
23              
24             1;
25              
26             __END__
27              
28             =pod
29              
30             =encoding utf-8
31              
32             =head1 NAME
33              
34             Map::Metro::Plugin::Map::Helsinki - Map::Metro map for Helsinki
35              
36              
37              
38             =begin html
39              
40             <p>
41             <img src="https://img.shields.io/badge/perl-5.10+-blue.svg" alt="Requires Perl 5.10+" />
42             <a href="https://travis-ci.org/Csson/p5-Map-Metro-Helsinki"><img src="https://api.travis-ci.org/Csson/p5-Map-Metro-Helsinki.svg?branch=master" alt="Travis status" /></a>
43             <a href="http://cpants.cpanauthors.org/release/CSSON/Map-Metro-Plugin-Map-Helsinki-0.1987"><img src="http://badgedepot.code301.com/badge/kwalitee/CSSON/Map-Metro-Plugin-Map-Helsinki/0.1987" alt="Distribution kwalitee" /></a>
44             <a href="http://matrix.cpantesters.org/?dist=Map-Metro-Plugin-Map-Helsinki%200.1987"><img src="http://badgedepot.code301.com/badge/cpantesters/Map-Metro-Plugin-Map-Helsinki/0.1987" alt="CPAN Testers result" /></a>
45             <img src="https://img.shields.io/badge/coverage-88.2%-orange.svg" alt="coverage 88.2%" />
46             </p>
47              
48             =end html
49              
50             =head1 VERSION
51              
52             Version 0.1987, released 2016-10-30.
53              
54             =head1 SYNOPSIS
55              
56             use Map::Metro;
57             my $graph = Map::Metro->new('Helsinki')->parse;
58              
59             my $graph2 = Map::Metro->new('Helsinki', hooks => 'Helsinki::Swedish')->parse;
60             # now the station names are in Swedish
61              
62             =head1 DESCRIPTION
63              
64             See L<Map::Metro> for usage information.
65              
66             This distribution also includes the C<Map::Metro::Plugin::Hook::Helsinki::Swedish> hook, which if applied
67             translates all station names into Swedish.
68              
69             =head1 Status
70              
71             See L<Map::Metro::Plugin::Map::Helsinki::Lines>
72              
73             This map includes:
74              
75             =over 4
76              
77             =item *
78              
79             The two branches of the Helsinki metro [L<wikipedia|https://en.wikipedia.org/wiki/Helsinki_Metro>]
80              
81             =back
82              
83             =for HTML <p><a href="https://raw.githubusercontent.com/Csson/p5-Map-Metro-Helsinki/master/static/images/helsinki.png"><img src="https://raw.githubusercontent.com/Csson/p5-Map-Metro-Helsinki/master/static/images/helsinki.png" style="max-width: 600px" /></a></p>
84              
85             =head1 SOURCE
86              
87             L<https://github.com/Csson/p5-Map-Metro-Helsinki>
88              
89             =head1 HOMEPAGE
90              
91             L<https://metacpan.org/release/Map-Metro-Plugin-Map-Helsinki>
92              
93             =head1 AUTHOR
94              
95             Erik Carlsson <info@code301.com>
96              
97             =head1 COPYRIGHT AND LICENSE
98              
99             This software is copyright (c) 2016 by Erik Carlsson.
100              
101             This is free software; you can redistribute it and/or modify it under
102             the same terms as the Perl 5 programming language system itself.
103              
104             =cut