blib/lib/Keystone/Resolver/DB/Genre.pm untested

filter: Statementstmt 0.0% 0 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 10 Podpod 0.0% 0 / 6 totaltotal 0.0% 0 / 35 CC 1 SCAR 6.9
CC
1
Cov
0%
table
2.0
fields
2.0
search_fields
2.0
CRAP 2.0
1 # $Id: Genre.pm,v 1.8 2007-09-13 09:42:33 mike Exp $
2  
3 package Keystone::Resolver::DB::Genre;
4  
5 use strict;
6 use warnings;
7 use Keystone::Resolver::DB::Object;
8  
9 use vars qw(@ISA);
10 @ISA = qw(Keystone::Resolver::DB::Object);
11  
12  
13 sub table { "genre" }
14  
15 sub fields { (id => undef,
16 tag => undef,
17 name => undef,
18 metadata_formats =>
19 [ id => "MetadataFormat", "genre_id", "name" ],
20 ) }
21  
22 sub search_fields { (tag => "t10",
23 name => "t25",
24 ) }
25  
26 sub sort_fields { ("name") }
27  
28 sub display_fields { (tag => "c",
29 name => "Lt",
30 ) }
31  
32 sub fulldisplay_fields { (tag => "c",
33 name => "Lt",
34 metadata_formats => "t",
35 ) }
36  
37 1;