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

filter: Statementstmt 100% 24 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 28 / 28 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/PostgreSQL/Host.pm ↑ Summary lib/Test2/Harness/UI/Schema/PostgreSQL/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 => "uuid", is_nullable => 0, size => 16 },
22 "job_id",
23 { data_type => "uuid", 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 => "uuid", is_foreign_key => 1, is_nullable => 0, size => 16 },
30 "is_harness_out",
31 { data_type => "boolean", default_value => \"false", is_nullable => 0 },
32 "status",
33 {
34 data_type => "enum",
35 default_value => "pending",
36 extra => {
37 custom_type_name => "queue_status",
38 list => ["pending", "running", "complete", "broken", "canceled"],
39 },
40 is_nullable => 0,
41 },
42 "parameters",
43 { data_type => "jsonb", is_nullable => 1 },
44 "test_file_id",
45 { data_type => "uuid", is_foreign_key => 1, is_nullable => 1, size => 16 },
46 "name",
47 { data_type => "text", is_nullable => 1 },
48 "fail",
49 { data_type => "boolean", is_nullable => 1 },
50 "retry",
51 { data_type => "boolean", is_nullable => 1 },
52 "exit_code",
53 { data_type => "integer", is_nullable => 1 },
54 "launch",
55 { data_type => "timestamp", is_nullable => 1 },
56 "start",
57 { data_type => "timestamp", is_nullable => 1 },
58 "ended",
59 { data_type => "timestamp", is_nullable => 1 },
60 "duration",
61 { data_type => "double precision", is_nullable => 1 },
62 "pass_count",
63 { data_type => "bigint", is_nullable => 1 },
64 "fail_count",
65 { data_type => "bigint", is_nullable => 1 },
66 "stdout",
67 { data_type => "text", is_nullable => 1 },
68 "stderr",
69 { data_type => "text", is_nullable => 1 },
70 );
71 1 __PACKAGE__->set_primary_key("job_key");
72 1 __PACKAGE__->add_unique_constraint("jobs_job_id_job_try_key", ["job_id", "job_try"]);
73 1 __PACKAGE__->has_many(
74 "coverages",
75 "Test2::Harness::UI::Schema::Result::Coverage",
76 { "foreign.job_key" => "self.job_key" },
77 { cascade_copy => 0, cascade_delete => 0 },
78 );
79 1 __PACKAGE__->has_many(
80 "events",
81 "Test2::Harness::UI::Schema::Result::Event",
82 { "foreign.job_key" => "self.job_key" },
83 { cascade_copy => 0, cascade_delete => 0 },
84 );
85 1 __PACKAGE__->has_many(
86 "job_fields",
87 "Test2::Harness::UI::Schema::Result::JobField",
88 { "foreign.job_key" => "self.job_key" },
89 { cascade_copy => 0, cascade_delete => 0 },
90 );
91 1 __PACKAGE__->has_many(
92 "reportings",
93 "Test2::Harness::UI::Schema::Result::Reporting",
94 { "foreign.job_key" => "self.job_key" },
95 { cascade_copy => 0, cascade_delete => 0 },
96 );
97 1 __PACKAGE__->belongs_to(
98 "run",
99 "Test2::Harness::UI::Schema::Result::Run",
100 { run_id => "run_id" },
101 { is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" },
102 );
103 1 __PACKAGE__->belongs_to(
104 "test_file",
105 "Test2::Harness::UI::Schema::Result::TestFile",
106 { test_file_id => "test_file_id" },
107 {
108 is_deferrable => 0,
109 join_type => "LEFT",
110 on_delete => "NO ACTION",
111 on_update => "NO ACTION",
112 },
113 );
114  
115  
116 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-03-02 16:05:20
117 # DO NOT MODIFY ANY PART OF THIS FILE
118  
119 1 1;
« lib/Test2/Harness/UI/Schema/PostgreSQL/Host.pm ↑ Summary lib/Test2/Harness/UI/Schema/PostgreSQL/JobField.pm »