Firebird/Test/SequenceTest.pm

filter: Statementstmt 100% 13 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 16 / 16 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Firebird/SQLMaker.pm ↑ Summary
1 package DBIO::Firebird::Test::SequenceTest;
2 # ABSTRACT: Test result class for Firebird sequence/generator tests
3  
4 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 2 ▶use base qw/DBIO::Test::BaseResult/;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 2 __PACKAGE__->table('sequence_test');
10  
11 2 __PACKAGE__->add_columns(
12 pkid1 => {
13 data_type => 'integer',
14 sequence => 'pkid1_seq',
15 is_auto_increment => 1,
16 auto_nextval => 1,
17 },
18 pkid2 => {
19 data_type => 'integer',
20 # Created unquoted in the test DDL, so Firebird folds it to upper case;
21 # the other two generators are created quoted (lower case).
22 sequence => 'PKID2_SEQ',
23 is_auto_increment => 1,
24 auto_nextval => 1,
25 },
26 nonpkid => {
27 data_type => 'integer',
28 sequence => 'nonpkid_seq',
29 is_auto_increment => 1,
30 auto_nextval => 1,
31 },
32 name => {
33 data_type => 'varchar',
34 size => 100,
35 is_nullable => 1,
36 },
37 );
38  
39 2 __PACKAGE__->set_primary_key('pkid1', 'pkid2');
40  
41 2 1;
42  
43 __END__
44  
45 =pod
46  
47 =encoding UTF-8
48  
49 =head1 NAME
50  
51 DBIO::Firebird::Test::SequenceTest - Test result class for Firebird sequence/generator tests
52  
53 =head1 VERSION
54  
55 version 0.900001
56  
57 =head1 AUTHOR
58  
59 DBIO & DBIx::Class Authors
60  
61 =head1 COPYRIGHT AND LICENSE
62  
63 Copyright (C) 2026 DBIO Authors
64 Portions Copyright (C) 2005-2025 DBIx::Class Authors
65 Based on DBIx::Class, heavily modified.
66  
67 This is free software; you can redistribute it and/or modify it under
68 the same terms as the Perl 5 programming language system itself.
69  
70 =cut
« Firebird/SQLMaker.pm ↑ Summary