File Coverage

blib/lib/Tapper/Schema/TestrunDB/Result/TestplanInstance.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::TestplanInstance;
2             our $AUTHORITY = 'cpan:TAPPER';
3             $Tapper::Schema::TestrunDB::Result::TestplanInstance::VERSION = '5.0.11';
4             # ABSTRACT: Tapper -
5              
6 7     7   30561 use strict;
  7         18  
  7         192  
7 7     7   32 use warnings;
  7         12  
  7         190  
8              
9 7     7   32 use parent 'DBIx::Class';
  7         13  
  7         39  
10              
11             __PACKAGE__->load_components(qw/InflateColumn::DateTime Core/);
12             __PACKAGE__->table("testplan_instance");
13             __PACKAGE__->add_columns
14             (
15             "id", { data_type => "INT", default_value => undef, is_nullable => 0, size => 11, is_auto_increment => 1, },
16             "path", { data_type => "VARCHAR", default_value => "", is_nullable => 1, size => 255, },
17             "name", { data_type => "VARCHAR", default_value => "", is_nullable => 1, size => 255, },
18             "evaluated_testplan", { data_type => "TEXT", default_value => "", is_nullable => 1, },
19             "created_at", { data_type => "TIMESTAMP", default_value => \'CURRENT_TIMESTAMP', is_nullable => 1, },
20             "updated_at", { data_type => "DATETIME", default_value => undef, is_nullable => 1, },
21             );
22              
23             __PACKAGE__->has_many ( testruns => 'Tapper::Schema::TestrunDB::Result::Testrun', { 'foreign.testplan_id' => 'self.id'}, {cascade_delete => 0 });
24             __PACKAGE__->set_primary_key("id");
25              
26             1;
27              
28             __END__
29              
30             =pod
31              
32             =encoding UTF-8
33              
34             =head1 NAME
35              
36             Tapper::Schema::TestrunDB::Result::TestplanInstance - Tapper -
37              
38             =head1 AUTHORS
39              
40             =over 4
41              
42             =item *
43              
44             AMD OSRC Tapper Team <tapper@amd64.org>
45              
46             =item *
47              
48             Tapper Team <tapper-ops@amazon.com>
49              
50             =back
51              
52             =head1 COPYRIGHT AND LICENSE
53              
54             This software is Copyright (c) 2019 by Advanced Micro Devices, Inc..
55              
56             This is free software, licensed under:
57              
58             The (two-clause) FreeBSD License
59              
60             =cut