Metro/Cmd/Available.pm

filter: Statementstmt 71.4% 20 / 28 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod n/a totaltotal 73.5% 25 / 34 CC 1 SCAR 1.5
CC
1
Cov
71%
run
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Metro/Graph/Line.pm ↑ Summary Metro/Hook.pm »
1 1 ▶use 5.10.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 package Map::Metro::Cmd::Available;
6  
7 # ABSTRACT: Display installed maps
8 1 our $AUTHORITY = 'cpan:CSSON'; # AUTHORITY
9 1 our $VERSION = '0.2404';
10  
11 1 ▶use Map::Metro::Elk;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 ▶use MooseX::App::Command;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 1 extends 'Map::Metro::Cmd';
14  
15 1 command_short_description 'Display installed maps';
16  
17 sub run {
18 0 ▶ my $self = shift;
Subroutine run: not called CC=1 SCAR=6.9
19  
20 0 my $map = Map::Metro->new;
21  
22 0 say "The following maps are available:\n";
23 0 say join "\n" => map { s{^Map::Metro::Plugin::Map::}{ }; $_ } grep { !/::Lines$/ } grep { !/^Map::Metro::Plugin::Map$/ } $map->available_maps;
24 }
25  
26 1 __PACKAGE__->meta->make_immutable;
27  
28 1 1;
29  
30 __END__
31  
32 =pod
33  
34 =encoding UTF-8
35  
36 =head1 NAME
37  
38 Map::Metro::Cmd::Available - Display installed maps
39  
40 =head1 VERSION
41  
42 Version 0.2404, released 2016-04-30.
43  
44 =head1 SOURCE
45  
46 L<https://github.com/Csson/p5-Map-Metro>
47  
48 =head1 HOMEPAGE
49  
50 L<https://metacpan.org/release/Map-Metro>
51  
52 =head1 AUTHOR
53  
54 Erik Carlsson <info@code301.com>
55  
56 =head1 COPYRIGHT AND LICENSE
57  
58 This software is copyright (c) 2016 by Erik Carlsson.
59  
60 This is free software; you can redistribute it and/or modify it under
61 the same terms as the Perl 5 programming language system itself.
62  
63 =cut
« Metro/Graph/Line.pm ↑ Summary Metro/Hook.pm »