lib/Test2/Harness/UI/Schema/MySQL/Job.pm

filter: Statementstmt 100% 31 / 31 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 36 / 36 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/Test2/Harness/UI/Schema/MySQL/Host.pm ↑ Summary lib/Test2/Harness/UI/Schema/MySQL/JobField.pm »
1 1 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 package Test2::Harness::UI::Schema::Result::Job;
3  
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY ANY PART OF THIS FILE
6  
7 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 1 ▶use base 'Test2::Harness::UI::Schema::ResultBase';
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 __PACKAGE__->load_components(
12 "InflateColumn::DateTime",
13 "InflateColumn::Serializer",
14 "InflateColumn::Serializer::JSON",
15 "Tree::AdjacencyList",
16 "UUIDColumns",
17 );
18 1 __PACKAGE__->table("jobs");
19 1 __PACKAGE__->add_columns(
20 "job_key",
21 { data_type => "binary", is_nullable => 0, size => 16 },
22 "job_id",
23 { data_type => "binary", is_nullable => 0, size => 16 },
24 "job_try",
25 { data_type => "integer", default_value => 0, is_nullable => 0 },
26 "job_ord",
27 { data_type => "bigint", is_nullable => 0 },
28 "run_id",
29 { data_type => "binary", is_foreign_key => 1, is_nullable => 0, size => 16 },
30 "is_harness_out",
31 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
32 "status",
33 {
34 data_type => "enum",
35 extra => {
36 list => ["pending", "running", "complete", "broken", "canceled"],
37 },
38 is_nullable => 0,
39 },
40 "parameters",
41 { data_type => "json", is_nullable => 1 },
42 "fields",
43 { data_type => "json", is_nullable => 1 },
44 "test_file_id",
45 { data_type => "binary", is_foreign_key => 1, is_nullable => 1, size => 16 },
46 "name",
47 { data_type => "text", is_nullable => 1 },
48 "fail",
49 { data_type => "tinyint", is_nullable => 1 },
50 "retry",
51 { data_type => "tinyint", is_nullable => 1 },
52 "exit_code",
53 { data_type => "integer", is_nullable => 1 },
54 "launch",
55 {
56 data_type => "timestamp",
57 datetime_undef_if_invalid => 1,
58 is_nullable => 1,
59 },
60 "start",
61 {
62 data_type => "timestamp",
63 datetime_undef_if_invalid => 1,
64 is_nullable => 1,
65 },
66 "ended",
67 {
68 data_type => "timestamp",
69 datetime_undef_if_invalid => 1,
70 is_nullable => 1,
71 },
72 "duration",
73 { data_type => "double precision", is_nullable => 1 },
74 "pass_count",
75 { data_type => "bigint", is_nullable => 1 },
76 "fail_count",
77 { data_type => "bigint", is_nullable => 1 },
78 "coverage_manager",
79 { data_type => "text", is_nullable => 1 },
80 "stdout",
81 { data_type => "longtext", is_nullable => 1 },
82 "stderr",
83 { data_type => "longtext", is_nullable => 1 },
84 );
85 1 __PACKAGE__->set_primary_key("job_key");
86 1 __PACKAGE__->add_unique_constraint("job_id", ["job_id", "job_try"]);
87 1 __PACKAGE__->has_many(
88 "coverages",
89 "Test2::Harness::UI::Schema::Result::Coverage",
90 { "foreign.job_key" => "self.job_key" },
91 { cascade_copy => 0, cascade_delete => 0 },
92 );
93 1 __PACKAGE__->has_many(
94 "events",
95 "Test2::Harness::UI::Schema::Result::Event",
96 { "foreign.job_key" => "self.job_key" },
97 { cascade_copy => 0, cascade_delete => 0 },
98 );
99 1 __PACKAGE__->has_many(
100 "job_fields",
101 "Test2::Harness::UI::Schema::Result::JobField",
102 { "foreign.job_key" => "self.job_key" },
103 { cascade_copy => 0, cascade_delete => 0 },
104 );
105 1 __PACKAGE__->has_many(
106 "reportings",
107 "Test2::Harness::UI::Schema::Result::Reporting",
108 { "foreign.job_key" => "self.job_key" },
109 { cascade_copy => 0, cascade_delete => 0 },
110 );
111 1 __PACKAGE__->belongs_to(
112 "run",
113 "Test2::Harness::UI::Schema::Result::Run",
114 { run_id => "run_id" },
115 { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
116 );
117 1 __PACKAGE__->belongs_to(
118 "test_file",
119 "Test2::Harness::UI::Schema::Result::TestFile",
120 { test_file_id => "test_file_id" },
121 {
122 is_deferrable => 1,
123 join_type => "LEFT",
124 on_delete => "RESTRICT",
125 on_update => "RESTRICT",
126 },
127 );
128  
129  
130 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-03-02 16:05:14
131 1 ▶use Test2::Harness::UI::UUID qw/uuid_inflate uuid_deflate/;
Subroutine BEGIN: called CC=1 SCAR=0.0
132 1 __PACKAGE__->inflate_column('run_id' => { inflate => \&uuid_inflate, deflate => \&uuid_deflate });
133 1 __PACKAGE__->inflate_column('test_file_id' => { inflate => \&uuid_inflate, deflate => \&uuid_deflate });
134 1 __PACKAGE__->inflate_column('job_id' => { inflate => \&uuid_inflate, deflate => \&uuid_deflate });
135 1 __PACKAGE__->inflate_column('job_key' => { inflate => \&uuid_inflate, deflate => \&uuid_deflate });
136 # DO NOT MODIFY ANY PART OF THIS FILE
137  
138 1 1;
« lib/Test2/Harness/UI/Schema/MySQL/Host.pm ↑ Summary lib/Test2/Harness/UI/Schema/MySQL/JobField.pm »