File Coverage

blib/lib/Tapper/Schema/TestrunDB/Result/NotificationEvent.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1             package Tapper::Schema::TestrunDB::Result::NotificationEvent;
2             our $AUTHORITY = 'cpan:TAPPER';
3             $Tapper::Schema::TestrunDB::Result::NotificationEvent::VERSION = '5.0.11';
4             # ABSTRACT: Tapper - Keep data about events that may trigger notifications
5              
6 7     7   3439 use strict;
  7         14  
  7         262  
7 7     7   34 use warnings;
  7         12  
  7         174  
8              
9 7     7   32 use parent 'DBIx::Class';
  7         13  
  7         35  
10 7     7   343 use YAML::Syck;
  7         15  
  7         1583  
11              
12             __PACKAGE__->load_components(qw/InflateColumn::DateTime Core InflateColumn/);
13             __PACKAGE__->table("notification_event");
14             __PACKAGE__->add_columns
15             ( "id", { data_type => "INT", default_value => undef, is_nullable => 0, size => 11, is_auto_increment => 1, },
16             "message", { data_type => "VARCHAR", default_value => undef, size => 255, is_nullable => 1, },
17             "type", { data_type => "VARCHAR", is_nullable => 1, size => 255, is_enum => 1, extra => { list => [qw(testrun_finished report_received)] } },
18             "created_at", { data_type => "TIMESTAMP", default_value => \'CURRENT_TIMESTAMP', is_nullable => 1, },
19             "updated_at", { data_type => "DATETIME", default_value => undef, is_nullable => 1, },
20             );
21              
22             (my $basepkg = __PACKAGE__) =~ s/::\w+$//;
23              
24             __PACKAGE__->inflate_column( message => {
25             inflate => sub { Load(shift) },
26             deflate => sub { Dump(shift)},
27             });
28              
29              
30             __PACKAGE__->set_primary_key("id");
31              
32             1;
33              
34             __END__
35              
36             =pod
37              
38             =encoding UTF-8
39              
40             =head1 NAME
41              
42             Tapper::Schema::TestrunDB::Result::NotificationEvent - Tapper - Keep data about events that may trigger notifications
43              
44             =head1 AUTHORS
45              
46             =over 4
47              
48             =item *
49              
50             AMD OSRC Tapper Team <tapper@amd64.org>
51              
52             =item *
53              
54             Tapper Team <tapper-ops@amazon.com>
55              
56             =back
57              
58             =head1 COPYRIGHT AND LICENSE
59              
60             This software is Copyright (c) 2019 by Advanced Micro Devices, Inc..
61              
62             This is free software, licensed under:
63              
64             The (two-clause) FreeBSD License
65              
66             =cut