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

filter: Statementstmt 0.0% 0 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod n/a totaltotal 0.0% 0 / 27 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package App::Netdisco::DB::Result::AccessControlListMap;
2 use utf8;
3 use strict;
4 use warnings;
5  
6 use base 'App::Netdisco::DB::Result';
7  
8 =head1 NAME
9  
10 App::Netdisco::DB::Result::AccessControlListMap
11  
12 =head1 DESCRIPTION
13  
14 Single ACL mapping within a named ACL.
15  
16 Left ACL must always be there. Right is optional.
17  
18 =cut
19  
20 __PACKAGE__->table('access_control_list_map');
21  
22 __PACKAGE__->add_columns(
23 "id",
24 { data_type => "integer", is_nullable => 0, is_auto_increment => 1 },
25 "acl_name",
26 { data_type => "text", is_nullable => 0 },
27 "left_acl_id",
28 { data_type => "integer", is_nullable => 0 },
29 "right_acl_id",
30 { data_type => "integer", is_nullable => 1 },
31 );
32  
33 __PACKAGE__->set_primary_key("id");
34  
35 __PACKAGE__->belongs_to( left_acl => 'App::Netdisco::DB::Result::AccessControlList',
36 { 'foreign.id' => 'self.left_acl_id' }, { cascade_delete => 1 } );
37  
38 __PACKAGE__->belongs_to( left_acl_with_dns => 'App::Netdisco::DB::Result::Virtual::ACLEntriesWithDNS',
39 { 'foreign.id' => 'self.left_acl_id' }, { cascade_delete => 1 } );
40  
41 __PACKAGE__->belongs_to( right_acl => 'App::Netdisco::DB::Result::AccessControlList',
42 { 'foreign.id' => 'self.right_acl_id' }, { cascade_delete => 1, join_type => 'left' } );
43  
44 __PACKAGE__->belongs_to( right_acl_with_dns => 'App::Netdisco::DB::Result::Virtual::ACLEntriesWithDNS',
45 { 'foreign.id' => 'self.right_acl_id' }, { cascade_delete => 1, join_type => 'left' } );
46  
47 1;