Toolkit/Role/Database.pm untested

filter: Statementstmt 0.0% 0 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 21 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Antispam::Toolkit::Role::Database;
2 BEGIN {
3 $Antispam::Toolkit::Role::Database::VERSION = '0.08';
4 }
5  
6 use strict;
7 use warnings;
8 use namespace::autoclean;
9  
10 use Moose::Role;
11  
12 requires qw( match_value );
13  
14 1;
15  
16 # ABSTRACT: An interface-only role for classes store and match values
17  
18  
19  
20 =pod
21  
22 =head1 NAME
23  
24 Antispam::Toolkit::Role::Database - An interface-only role for classes store and match values
25  
26 =head1 VERSION
27  
28 version 0.08
29  
30 =head1 DESCRIPTION
31  
32 This role should be consumed by any class which can store and match values. It
33 specifies a common interface for these classes, but does not specify an
34 implementation.
35  
36 =head1 REQUIRED METHODS
37  
38 This role requires one method:
39  
40 =head2 $db->match_value($value)
41  
42 This method takes a value and returns true if it is in the database, and false
43 if not. The exact mechanics of how matching is done are left up to the
44 implementation. This means you a match can be an exact match, a regular
45 expression match, etc.
46  
47 =head1 BUGS
48  
49 See L<Antispam::Toolkit> for bug reporting details.
50  
51 =head1 AUTHOR
52  
53 Dave Rolsky <autarch@urth.org>
54  
55 =head1 COPYRIGHT AND LICENSE
56  
57 This software is Copyright (c) 2011 by Dave Rolsky.
58  
59 This is free software, licensed under:
60  
61 The Artistic License 2.0 (GPL Compatible)
62  
63 =cut
64  
65  
66 __END__