blib/lib/App/Netdisco/DB/Result/SNMPObject.pm untested

filter: Statementstmt 0.0% 0 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod n/a totaltotal 0.0% 0 / 22 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 use utf8;
2 package App::Netdisco::DB::Result::SNMPObject;
3  
4 use strict;
5 use warnings;
6  
7 use base 'App::Netdisco::DB::Result';
8 __PACKAGE__->table("snmp_object");
9 __PACKAGE__->add_columns(
10 "oid",
11 { data_type => "text", is_nullable => 0 },
12 "oid_parts",
13 { data_type => "integer[]", is_nullable => 0 },
14 "mib",
15 { data_type => "text", is_nullable => 0 },
16 "leaf",
17 { data_type => "text", is_nullable => 0 },
18 "type",
19 { data_type => "text", is_nullable => 1 },
20 "access",
21 { data_type => "text", is_nullable => 1 },
22 "index",
23 { data_type => "text[]", is_nullable => 1, default_value => \"'{}'::text[]" },
24 "num_children",
25 { data_type => "integer", is_nullable => 0, default_value => \'0' },
26 "status",
27 { data_type => "text", is_nullable => 1 },
28 "enum",
29 { data_type => "text[]", is_nullable => 1, default_value => \"'{}'::text[]" },
30 "descr",
31 { data_type => "text", is_nullable => 1 },
32 );
33 __PACKAGE__->set_primary_key("oid");
34  
35 __PACKAGE__->might_have( device_browser => 'App::Netdisco::DB::Result::DeviceBrowser', 'oid' );
36  
37 __PACKAGE__->might_have( snmp_filter => 'App::Netdisco::DB::Result::SNMPFilter', { 'foreign.leaf' => 'self.leaf' } );
38  
39 1;