Tapper/Schema/TestrunDB/Result/BenchUnits.pm

filter: Statementstmt 100% 19 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 22 / 22 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/BenchSubsumeTypes.pm ↑ Summary Tapper/Schema/TestrunDB/Result/BenchValues.pm »
1 package Tapper::Schema::TestrunDB::Result::BenchUnits;
2 10 our $AUTHORITY = 'cpan:TAPPER';
3 10 $Tapper::Schema::TestrunDB::Result::BenchUnits::VERSION = '5.0.12';
4 # ABSTRACT: Tapper - units for benchmark data points
5  
6 10 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 10 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 10 ▶use parent 'DBIx::Class';
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 10 __PACKAGE__->load_components(qw/InflateColumn::DateTime Core/);
12 10 __PACKAGE__->table('bench_units');
13 10 __PACKAGE__->add_columns(
14 'bench_unit_id', {
15 data_type => 'TINYINT',
16 default_value => undef,
17 is_nullable => 0,
18 size => 4,
19 is_auto_increment => 1,
20 extra => {
21 unsigned => 1,
22 },
23 },
24 'bench_unit', {
25 data_type => 'VARCHAR',
26 default_value => undef,
27 is_nullable => 0,
28 size => 64,
29 },
30 'created_at', {
31 data_type => 'TIMESTAMP',
32 default_value => undef,
33 is_nullable => 0,
34 set_on_create => 1,
35 },
36 );
37  
38 10 (my $basepkg = __PACKAGE__) =~ s/::\w+$//;
39  
40 10 __PACKAGE__->set_primary_key('bench_unit_id');
41 10 __PACKAGE__->add_unique_constraint(
42 'ux_bench_units_01' => ['bench_unit'],
43 );
44  
45 10 __PACKAGE__->has_many (
46 benchs => "${basepkg}::Benchs", { 'foreign.bench_unit_id' => 'self.bench_unit_id' },
47 );
48  
49 10 1;
50  
51 __END__
« Tapper/Schema/TestrunDB/Result/BenchSubsumeTypes.pm ↑ Summary Tapper/Schema/TestrunDB/Result/BenchValues.pm »