Firebird/Test/SequenceTest.pm

filter: Statementstmt 100% 14 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 17 / 17 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Firebird/Storage.pm ↑ Summary
1 package DBIO::Firebird::Test::SequenceTest;
2 # ABSTRACT: Test result class for Firebird sequence/generator tests
3  
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 our $VERSION = '0.900007';
8  
9 1 ▶use base qw/DBIO::Test::BaseResult/;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 1 __PACKAGE__->table('sequence_test');
12  
13 1 __PACKAGE__->add_columns(
14 pkid1 => {
15 data_type => 'integer',
16 sequence => 'pkid1_seq',
17 is_auto_increment => 1,
18 auto_nextval => 1,
19 },
20 pkid2 => {
21 data_type => 'integer',
22 # Created unquoted in the test DDL, so Firebird folds it to upper case;
23 # the other two generators are created quoted (lower case).
24 sequence => 'PKID2_SEQ',
25 is_auto_increment => 1,
26 auto_nextval => 1,
27 },
28 nonpkid => {
29 data_type => 'integer',
30 sequence => 'nonpkid_seq',
31 is_auto_increment => 1,
32 auto_nextval => 1,
33 },
34 name => {
35 data_type => 'varchar',
36 size => 100,
37 is_nullable => 1,
38 },
39 );
40  
41 1 __PACKAGE__->set_primary_key('pkid1', 'pkid2');
42  
43 1 1;
44  
45 __END__
« Firebird/Storage.pm ↑ Summary