blib/lib/DBIO/Test/Schema/TwoKeyTreeLike.pm

filter: Statementstmt 100% 16 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 19 / 19 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/DBIO/Test/Schema/TimestampPrimaryKey.pm ↑ Summary blib/lib/DBIO/Test/Schema/TwoKeys.pm »
1 package DBIO::Test::Schema::TwoKeyTreeLike;
2 # ABSTRACT: Test result class for the twokeytreelike table
3  
4 256 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 256 our $VERSION = '0.900007';
7  
8 256 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 256 ▶use base qw/DBIO::Test::BaseResult/;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 256 __PACKAGE__->table('twokeytreelike');
13 256 __PACKAGE__->add_columns(
14 'id1' => { data_type => 'integer' },
15 'id2' => { data_type => 'integer' },
16 'parent1' => { data_type => 'integer' },
17 'parent2' => { data_type => 'integer' },
18 'name' => { data_type => 'varchar',
19 size => 100,
20 },
21 );
22 256 __PACKAGE__->set_primary_key(qw/id1 id2/);
23 256 __PACKAGE__->add_unique_constraint('tktlnameunique' => ['name']);
24 256 __PACKAGE__->belongs_to('parent', 'DBIO::Test::Schema::TwoKeyTreeLike',
25 { 'foreign.id1' => 'self.parent1', 'foreign.id2' => 'self.parent2'});
26  
27 256 1;
28  
29 __END__
« blib/lib/DBIO/Test/Schema/TimestampPrimaryKey.pm ↑ Summary blib/lib/DBIO/Test/Schema/TwoKeys.pm »