MapFeatures/Feature/Key.pm

filter: Statementstmt 68.1% 15 / 22 Branchbran n/a Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 66.6% 4 / 6 Podpod 50.0% 1 / 2 totaltotal 57.1% 20 / 35 CC 2 SCAR 9.4
CC
2
Cov
60%
new
6.0
stringify
2.0
BEGIN
1.0
CRAP 2.6
« MapFeatures/Feature.pm ↑ Summary MapFeatures/Feature/Type.pm »
1 package Geo::OSM::MapFeatures::Feature::Key;
2  
3 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 2 ▶use base qw(Class::Accessor);
Subroutine BEGIN: called CC=1 SCAR=0.0
7 2 __PACKAGE__->mk_accessors( qw(key) );
8  
9 2 ▶use overload '""' => \&stringify;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 =head1 NAME
12  
13 Geo::OSM::MapFeatures::Feature::Key - Represents a key
14  
15 =head1 VERSION
16  
17 Version 0.01
18  
19 =cut
20  
21 2 our $VERSION = '0.01';
22  
23  
24 =head1 SYNOPSIS
25  
26 =head1 FUNCTIONS
27  
28 =head2 key
29  
30 Retrieve the key value
31  
32 =cut
33  
34 0 ▶sub new {
Subroutine new: not called CC=2 SCAR=17.9
Pod documented
35 0 my $pkg = shift;
36 0 ▶ my $class = ref $pkg || $pkg;
Condition0%0/3
ref $pkg || $pkg
l!l&&r!l&&!r
000
MC/DC0%0/2
ref $pkg || $pkg
ref $pkg $pkg
Truth table0%0/3
A || B
A= ref $pkgB= $pkg
ABresult
1X1
011
000
37 0 my $self = bless( {}, $class);
38  
39 0 $self->key( shift() );
40  
41 0 return $self;
42 }
43  
44 0 ▶sub stringify {
Subroutine stringify: not called CC=1 SCAR=6.9
Pod undocumented
45 0 my $self = shift;
46  
47 0 return $self->key();
48 }
49  
50 =head1 AUTHOR
51  
52 Knut Arne Bjørndal, C<< <bob at cakebox.net> >>
53  
54 =head1 BUGS
55  
56 Please report any bugs or feature requests to C<bug-geo-osm-mapfeatures-feature-key at rt.cpan.org>, or through
57 the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Geo-OSM-MapFeatures>. I will be notified, and then you'll
58 automatically be notified of progress on your bug as I make changes.
59  
60  
61  
62  
63 =head1 SUPPORT
64  
65 You can find documentation for this module with the perldoc command.
66  
67 perldoc Geo::OSM::MapFeatures
68  
69  
70 You can also look for information at:
71  
72 =over 4
73  
74 =item * RT: CPAN's request tracker
75  
76 L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Geo-OSM-MapFeatures>
77  
78 =item * AnnoCPAN: Annotated CPAN documentation
79  
80 L<http://annocpan.org/dist/Geo-OSM-MapFeatures>
81  
82 =item * CPAN Ratings
83  
84 L<http://cpanratings.perl.org/d/Geo-OSM-MapFeatures>
85  
86 =item * Search CPAN
87  
88 L<http://search.cpan.org/dist/Geo-OSM-MapFeatures>
89  
90 =back
91  
92  
93 =head1 ACKNOWLEDGEMENTS
94  
95  
96 =head1 COPYRIGHT & LICENSE
97  
98 Copyright 2008 Knut Arne Bjørndal, all rights reserved.
99  
100 This program is free software; you can redistribute it and/or modify it
101 under the same terms as Perl itself.
102  
103  
104 =cut
105  
106 2 1; # End of Geo::OSM::MapFeatures::Feature::Key
« MapFeatures/Feature.pm ↑ Summary MapFeatures/Feature/Type.pm »