File Coverage

blib/lib/Tapper/Schema/TestrunDB/Result/ReportComment.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::ReportComment;
2             our $AUTHORITY = 'cpan:TAPPER';
3             $Tapper::Schema::TestrunDB::Result::ReportComment::VERSION = '5.0.11';
4             # ABSTRACT: Tapper - Containing comments of reports
5              
6 7     7   3563 use strict;
  7         16  
  7         180  
7 7     7   33 use warnings;
  7         14  
  7         163  
8              
9 7     7   31 use parent 'DBIx::Class';
  7         14  
  7         36  
10              
11             __PACKAGE__->load_components(qw/InflateColumn::DateTime TimeStamp Core/);
12             __PACKAGE__->table("reportcomment");
13             __PACKAGE__->add_columns
14             (
15             "id", { data_type => "INT", default_value => undef, is_nullable => 0, size => 11, is_auto_increment => 1, },
16             "report_id", { data_type => "INT", default_value => undef, is_nullable => 0, size => 11, is_foreign_key => 1, },
17             "owner_id", { data_type => "INT", default_value => undef, is_nullable => 1, size => 11, is_foreign_key => 1, extra => { renamed_from => 'user_id' }, },
18             "succession", { data_type => "INT", default_value => undef, is_nullable => 1, size => 10, },
19             "comment", { data_type => "TEXT", default_value => "", is_nullable => 0, },
20             "created_at", { data_type => "DATETIME", default_value => undef, is_nullable => 0, set_on_create => 1, },
21             "updated_at", { data_type => "DATETIME", default_value => undef, is_nullable => 0, set_on_create => 1, set_on_update => 1, },
22             );
23              
24             __PACKAGE__->set_primary_key("id");
25              
26             __PACKAGE__->belongs_to ( report => 'Tapper::Schema::TestrunDB::Result::Report', { 'foreign.id' => 'self.report_id' });
27             __PACKAGE__->belongs_to ( owner => 'Tapper::Schema::TestrunDB::Result::Owner', { 'foreign.id' => 'self.owner_id' });
28              
29              
30             1;
31              
32             __END__
33              
34             =pod
35              
36             =encoding UTF-8
37              
38             =head1 NAME
39              
40             Tapper::Schema::TestrunDB::Result::ReportComment - Tapper - Containing comments of reports
41              
42             =head1 AUTHORS
43              
44             =over 4
45              
46             =item *
47              
48             AMD OSRC Tapper Team <tapper@amd64.org>
49              
50             =item *
51              
52             Tapper Team <tapper-ops@amazon.com>
53              
54             =back
55              
56             =head1 COPYRIGHT AND LICENSE
57              
58             This software is Copyright (c) 2019 by Advanced Micro Devices, Inc..
59              
60             This is free software, licensed under:
61              
62             The (two-clause) FreeBSD License
63              
64             =cut