blib/lib/Keystone/Resolver/DB/ServiceType.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: ServiceType.pm,v 1.9 2008-02-07 14:28:44 mike Exp $
2  
3 package Keystone::Resolver::DB::ServiceType;
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 { "service_type" }
14  
15 sub fields { (id => undef,
16 tag => undef,
17 name => undef,
18 plugin => undef,
19 priority => undef,
20 services => [ id => "Service", "service_type_id", "name" ],
21 ) }
22  
23 sub search_fields { (tag => "t10",
24 name => "t25",
25 plugin => "t25",
26 priority => "n5",
27 ) }
28  
29 sub sort_fields { ("priority asc", "name") }
30  
31 sub display_fields { (id => "n",
32 tag => "c",
33 name => "Lt",
34 priority => "n",
35 ) }
36  
37 sub fulldisplay_fields { (tag => "c",
38 name => "t",
39 plugin => "t",
40 priority => "n",
41 services => "t",
42 ) }
43  
44 1;