Tapper/Schema/TestrunDB/Result/HostFeature.pm

filter: Statementstmt 100% 20 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 24 / 24 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Tapper/Schema/TestrunDB/Result/DeniedHost.pm ↑ Summary Tapper/Schema/TestrunDB/Result/Message.pm »
1 package Tapper::Schema::TestrunDB::Result::HostFeature;
2 10 our $AUTHORITY = 'cpan:TAPPER';
3 10 $Tapper::Schema::TestrunDB::Result::HostFeature::VERSION = '5.0.12';
4 # ABSTRACT: Tapper - Containing features for hosts
5  
6 10 ▶use 5.010;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 10 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 10 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 10 ▶use parent 'DBIx::Class';
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 10 __PACKAGE__->load_components(qw/InflateColumn::DateTime Core/);
13 10 __PACKAGE__->table("host_feature");
14 10 __PACKAGE__->add_columns
15 (
16 "id", { data_type => "INT", default_value => undef, is_nullable => 0, size => 11, is_auto_increment => 1, },
17 "host_id", { data_type => "INT", default_value => undef, is_nullable => 0, },
18 # can't call it key because that's a SQL keyword
19 "entry", { data_type => "VARCHAR", default_value => undef, is_nullable => 0, size => 255, },
20 "value", { data_type => "VARCHAR", default_value => undef, is_nullable => 0, size => 255, },
21 "created_at", { data_type => "TIMESTAMP", default_value => \'CURRENT_TIMESTAMP', is_nullable => 1, },
22 "updated_at", { data_type => "DATETIME", default_value => undef, is_nullable => 1, },
23  
24 );
25  
26 10 __PACKAGE__->set_primary_key("id");
27  
28 10 (my $basepkg = __PACKAGE__) =~ s/::\w+$//;
29  
30 10 __PACKAGE__->belongs_to( host => "${basepkg}::Host", { 'foreign.id' => 'self.host_id' });
31  
32  
33 10 1;
34  
35 __END__
« Tapper/Schema/TestrunDB/Result/DeniedHost.pm ↑ Summary Tapper/Schema/TestrunDB/Result/Message.pm »