Sitemap/URLStore.pm untested

filter: Statementstmt 0.0% 0 / 31 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 10 Podpod 0.0% 0 / 3 totaltotal 0.0% 0 / 44 CC 1 SCAR 6.9
CC
1
Cov
0%
put
2.0
get
2.0
all
2.0
CRAP 2.0
1 package Search::Sitemap::URLStore;
2 $Search::Sitemap::URLStore::VERSION = '2.13_01';
3 use 5.008003;
4 use strict;
5 use warnings;
6 our $AUTHORITY = 'cpan:JASONK';
7 use Moose;
8 use Class::Trigger;
9 use Carp qw( croak );
10 use namespace::clean -except => [qw( meta add_trigger call_trigger )];
11  
12 after 'put' => sub {
13 my $self = shift;
14 $self->call_trigger( put => @_ );
15 };
16  
17 sub put { croak "Abstract method 'put' called" }
18 sub get { croak "Abstract method 'get' called" }
19 sub all { croak "Abstract method 'all' called" }
20  
21 __PACKAGE__->meta->make_immutable;
22 1;
23  
24 =head1 NAME
25  
26 Search::Sitemap::URLStore - Abstract base class for Search::Sitemap URL stores
27  
28 =head1 DESCRIPTION
29  
30 =head1 METHODS
31  
32 =head2 put( @urls )
33  
34 Add one or more L<Search::Sitemap::URL> objects to the URL store.
35  
36 =head2 get( $url )
37  
38 Retrieve a L<Search::Sitemap::URL> object from the URL store.
39  
40 =head2 all
41  
42 Return all the L<Search::Sitemap::URL> objects from the URL store.
43  
44 =head1 SEE ALSO
45  
46 L<Search::Sitemap>
47  
48 L<Search::Sitemap::URLStore::Memory>
49  
50 =head1 AUTHOR
51  
52 Jason Kohles, E<lt>email@jasonkohles.comE<gt>
53  
54 =head1 COPYRIGHT AND LICENSE
55  
56 Copyright (C) 2005-2009 by Jason Kohles
57  
58 This library is free software; you can redistribute it and/or modify
59 it under the same terms as Perl itself.
60  
61 =cut
62