Tapper/Schema/TestrunDB/Result/Suite.pm

filter: Statementstmt 100% 19 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 100% 1 / 1 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/Resource.pm ↑ Summary Tapper/Schema/TestrunDB/Result/Tap.pm »
1 package Tapper::Schema::TestrunDB::Result::Suite;
2 10 our $AUTHORITY = 'cpan:TAPPER';
3 10 $Tapper::Schema::TestrunDB::Result::Suite::VERSION = '5.0.12';
4 # ABSTRACT: Tapper - Containing suite information
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("Core");
12 10 __PACKAGE__->table("suite");
13 10 __PACKAGE__->add_columns
14 (
15 "id", { data_type => "INT", default_value => undef, is_nullable => 0, size => 11, is_auto_increment => 1, },
16 "name", { data_type => "VARCHAR", default_value => undef, is_nullable => 0, size => 255, },
17 "type", { data_type => "VARCHAR", default_value => undef, is_nullable => 0, size => 255, },
18 "description", { data_type => "TEXT", default_value => undef, is_nullable => 0, },
19 );
20  
21 10 __PACKAGE__->set_primary_key("id");
22  
23 10 __PACKAGE__->has_many ( reports => 'Tapper::Schema::TestrunDB::Result::Report', { 'foreign.suite_id' => 'self.id' });
24  
25  
26  
27 sub sqlt_deploy_hook
28 8 ▶{
Subroutine sqlt_deploy_hook: called CC=1 SCAR=0.0
Pod documented
29 8 my ($self, $sqlt_table) = @_;
30 8 $sqlt_table->add_index(name => 'suite_idx_name', fields => ['name']);
31 }
32  
33 10 1;
34  
35 __END__
« Tapper/Schema/TestrunDB/Result/Resource.pm ↑ Summary Tapper/Schema/TestrunDB/Result/Tap.pm »