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

filter: Statementstmt 100% 15 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 19 / 19 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
↑ Summary
1 # -*- perl -*-
2  
3 #
4 # Author: Slaven Rezic
5 #
6 # Copyright (C) 2014,2015,2017,2018,2019,2020,2021,2023,2024,2025 Slaven Rezic. All rights reserved.
7 # This package is free software; you can redistribute it and/or
8 # modify it under the same terms as Perl itself.
9 #
10 # Mail: slaven@rezic.de
11 # WWW: http://www.rezic.de/eserte/
12 #
13  
14 {
15 1 package Map::Metro::Plugin::Map::Berlin;
16  
17 1 our $VERSION = '2025.1214';
18  
19 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
20 1 ▶ use File::ShareDir 'dist_dir';
Subroutine BEGIN: called CC=1 SCAR=0.0
21 1 ▶ use Path::Tiny;
Subroutine BEGIN: called CC=1 SCAR=0.0
22 1 with 'Map::Metro::Plugin::Map';
23
24 has '+mapfile' => (
25 1 ▶ default => sub { path(dist_dir('Map-Metro-Plugin-Map-Berlin'))->child('map-berlin.metro')->absolute },
Subroutine __ANON__: called CC=1 SCAR=0.0
26 1 );
27 }
28  
29 1 1;
30  
31 __END__
32  
33 =encoding utf-8
34
35 =head1 NAME
36
37 Map::Metro::Plugin::Map::Berlin - Map::Metro map for Berlin
38
39 =head1 SYNOPSIS
40
41 use Map::Metro;
42 my $graph = Map::Metro->new('Berlin')->parse;
43  
44 From commandline:
45  
46 map-metro.pl route Berlin "Rathaus Spandau" "Rudow"
47
48 =head1 DESCRIPTION
49
50 See L<Map::Metro> for usage information.
51
52 =head1 Status
53
54 The network currently contains both U-Bahn and S-Bahn.
55  
56 =head1 AUTHOR
57
58 Slaven Rezic E<lt>srezic@cpan.orgE<gt>
59
60 =head1 SEE ALSO
61  
62 L<Map::Metro>, L<Map::Tube::Berlin>.
63  
64 =cut
↑ Summary