blib/lib/DBIO/Test/Schema/FourKeys.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/ForceForeign.pm ↑ Summary blib/lib/DBIO/Test/Schema/FourKeys_to_TwoKeys.pm »
1 package DBIO::Test::Schema::FourKeys;
2 # ABSTRACT: Test result class for the fourkeys 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('fourkeys');
13 256 __PACKAGE__->add_columns(
14 'foo' => { data_type => 'integer' },
15 'bar' => { data_type => 'integer' },
16 'hello' => { data_type => 'integer' },
17 'goodbye' => { data_type => 'integer' },
18 'sensors' => { data_type => 'character', size => 10 },
19 'read_count' => { data_type => 'int', is_nullable => 1 },
20 );
21 256 __PACKAGE__->set_primary_key(qw/foo bar hello goodbye/);
22  
23 256 __PACKAGE__->has_many(
24 'fourkeys_to_twokeys', 'DBIO::Test::Schema::FourKeys_to_TwoKeys', {
25 'foreign.f_foo' => 'self.foo',
26 'foreign.f_bar' => 'self.bar',
27 'foreign.f_hello' => 'self.hello',
28 'foreign.f_goodbye' => 'self.goodbye',
29 });
30  
31 256 __PACKAGE__->many_to_many(
32 'twokeys', 'fourkeys_to_twokeys', 'twokeys',
33 );
34  
35 256 1;
36  
37 __END__
« blib/lib/DBIO/Test/Schema/ForceForeign.pm ↑ Summary blib/lib/DBIO/Test/Schema/FourKeys_to_TwoKeys.pm »