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 CC 1 SCAR 1.5
CC
1
Cov
94%
map_version
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« 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.1985'; # 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  
38  
39 =begin HTML
40  
41 <p><img src="https://img.shields.io/badge/perl-5.16+-brightgreen.svg" alt="Requires Perl 5.16+" /> <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></p>
42  
43 =end HTML
44  
45  
46 =begin markdown
47  
48 ![Requires Perl 5.16+](https://img.shields.io/badge/perl-5.16+-brightgreen.svg) [![Travis status](https://api.travis-ci.org/Csson/p5-Map-Metro-Helsinki.svg?branch=master)](https://travis-ci.org/Csson/p5-Map-Metro-Helsinki)
49  
50 =end markdown
51  
52 =head1 VERSION
53  
54 Version 0.1985, released 2015-04-26.
55  
56 =head1 SYNOPSIS
57  
58 use Map::Metro;
59 my $graph = Map::Metro->new('Helsinki')->parse;
60  
61 my $graph2 = Map::Metro->new('Helsinki', hooks => 'Helsinki::Swedish')->parse;
62 # now the station names are in Swedish
63  
64 =head1 DESCRIPTION
65  
66 See L<Map::Metro> for usage information.
67  
68 This distribution also includes the C<Map::Metro::Plugin::Hook::Helsinki::Swedish> hook, which if applied
69 translates all station names into Swedish.
70  
71 =head1 Status
72  
73 See L<Map::Metro::Plugin::Map::Helsinki::Lines>
74  
75 This map includes:
76  
77 =over 4
78  
79 =item *
80  
81 The two branches of the Helsinki metro [L<wikipedia|https://en.wikipedia.org/wiki/Helsinki_Metro>]
82  
83 =back
84  
85 =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>
86  
87 =head1 SOURCE
88  
89 L<https://github.com/Csson/p5-Map-Metro-Helsinki>
90  
91 =head1 HOMEPAGE
92  
93 L<https://metacpan.org/release/Map-Metro-Plugin-Map-Helsinki>
94  
95 =head1 AUTHOR
96  
97 Erik Carlsson <info@code301.com>
98  
99 =head1 COPYRIGHT AND LICENSE
100  
101 This software is copyright (c) 2015 by Erik Carlsson <info@code301.com>.
102  
103 This is free software; you can redistribute it and/or modify it under
104 the same terms as the Perl 5 programming language system itself.
105  
106 =cut
« blib/lib/Map/Metro/Plugin/Hook/Helsinki/Swedish.pm ↑ Summary Build »