blib/lib/Map/Metro/Plugin/Map/Helsinki.pm

filter: Statementstmt 94.4% 17 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 0.0% 0 / 2 totaltotal 84.6% 22 / 26 SCAR 0.0
CC
1
Cov
94%
map_version
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Map/Metro/Plugin/Hook/Helsinki/Swedish.pm ↑ Summary Build »
1 1 ▶use 5.16.0;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 1 package Map::Metro::Plugin::Map::Helsinki {
6  
7 1 our $VERSION = '0.1984'; # VERSION
8 # ABSTRACT: Map::Metro map for Helsinki
9  
10 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 with 'Map::Metro::Plugin::Map';
12  
13 1 has '+mapfile' => (
14 default => 'map-helsinki.metro',
15 );
16 sub map_version {
17 0 ▶ return $VERSION;
Subroutine map_version: not called CC=1 SCAR=6.9
Pod undocumented
18 }
19 sub map_package {
20 2 ▶ return __PACKAGE__;
Subroutine map_package: called CC=1 SCAR=0.0
Pod undocumented
21 }
22 }
23  
24  
25 1 1;
26  
27 __END__
28  
29 =pod
30  
31 =encoding utf-8
32  
33 =head1 NAME
34  
35 Map::Metro::Plugin::Map::Helsinki - Map::Metro map for Helsinki
36  
37 =head1 VERSION
38  
39 Version 0.1984, released 2015-01-16.
40  
41 =head1 SYNOPSIS
42  
43 use Map::Metro;
44 my $graph = Map::Metro->new('Helsinki')->parse;
45  
46 my $graph2 = Map::Metro->new('Helsinki', hooks => 'Helsinki::Swedish')->parse;
47 # now the station names are in Swedish
48  
49 =head1 DESCRIPTION
50  
51 See L<Map::Metro> for usage information.
52  
53 This distribution also includes the C<Map::Metro::Plugin::Hook::Helsinki::Swedish> hook, which if applied
54 translates all station names into Swedish.
55  
56 =head1 Status
57  
58 See L<Map::Metro::Plugin::Map::Helsinki::Lines>
59  
60 This map includes:
61  
62 =over 4
63  
64 =item *
65  
66 The two branches of the Helsinki metro [L<wikipedia|https://en.wikipedia.org/wiki/Helsinki_Metro>]
67  
68 =back
69  
70 =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>
71  
72 =head1 SOURCE
73  
74 L<https://github.com/Csson/p5-Map-Metro-Helsinki>
75  
76 =head1 HOMEPAGE
77  
78 L<https://metacpan.org/release/Map-Metro-Plugin-Map-Helsinki>
79  
80 =head1 AUTHOR
81  
82 Erik Carlsson <info@code301.com>
83  
84 =head1 COPYRIGHT AND LICENSE
85  
86 This software is copyright (c) 2015 by Erik Carlsson <info@code301.com>.
87  
88 This is free software; you can redistribute it and/or modify it under
89 the same terms as the Perl 5 programming language system itself.
90  
91 =cut
« blib/lib/Map/Metro/Plugin/Hook/Helsinki/Swedish.pm ↑ Summary Build »