File Coverage

blib/lib/Tapper/Schema/TestrunDB/Result/TestrunPrecondition.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1             package Tapper::Schema::TestrunDB::Result::TestrunPrecondition;
2             our $AUTHORITY = 'cpan:TAPPER';
3             $Tapper::Schema::TestrunDB::Result::TestrunPrecondition::VERSION = '5.0.11';
4             # ABSTRACT: Tapper - Containg relations between testruns and preconditions
5              
6 7     7   4056 use strict;
  7         17  
  7         184  
7 7     7   35 use warnings;
  7         13  
  7         179  
8              
9 7     7   32 use parent 'DBIx::Class';
  7         59  
  7         40  
10              
11             __PACKAGE__->load_components("Core");
12             __PACKAGE__->table("testrun_precondition");
13             __PACKAGE__->add_columns
14             (
15             "testrun_id", { data_type => "INT", default_value => undef, is_nullable => 0, size => 11, is_foreign_key => 1, },
16             "precondition_id", { data_type => "INT", default_value => undef, is_nullable => 0, size => 11, is_foreign_key => 1, },
17             "succession", { data_type => "INT", default_value => undef, is_nullable => 1, size => 10, },
18             );
19              
20             __PACKAGE__->set_primary_key(qw/testrun_id precondition_id/);
21              
22             __PACKAGE__->belongs_to( testrun => 'Tapper::Schema::TestrunDB::Result::Testrun', { 'foreign.id' => 'self.testrun_id' });
23             __PACKAGE__->belongs_to( precondition => 'Tapper::Schema::TestrunDB::Result::Precondition', { 'foreign.id' => 'self.precondition_id' });
24              
25             1;
26              
27             __END__
28              
29             =pod
30              
31             =encoding UTF-8
32              
33             =head1 NAME
34              
35             Tapper::Schema::TestrunDB::Result::TestrunPrecondition - Tapper - Containg relations between testruns and preconditions
36              
37             =head1 AUTHORS
38              
39             =over 4
40              
41             =item *
42              
43             AMD OSRC Tapper Team <tapper@amd64.org>
44              
45             =item *
46              
47             Tapper Team <tapper-ops@amazon.com>
48              
49             =back
50              
51             =head1 COPYRIGHT AND LICENSE
52              
53             This software is Copyright (c) 2019 by Advanced Micro Devices, Inc..
54              
55             This is free software, licensed under:
56              
57             The (two-clause) FreeBSD License
58              
59             =cut