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

filter: Statementstmt 100% 26 / 26 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 31 / 31 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/CoverageManager.pm ↑ Summary lib/Test2/Harness/UI/Schema/MySQL/EmailVerificationCode.pm »
1 1 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 package Test2::Harness::UI::Schema::Result::Email;
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("email");
19 1 __PACKAGE__->add_columns(
20 "email_id",
21 { data_type => "binary", is_nullable => 0, size => 16 },
22 "user_id",
23 { data_type => "binary", is_foreign_key => 1, is_nullable => 0, size => 16 },
24 "local",
25 { data_type => "varchar", is_nullable => 0, size => 128 },
26 "domain",
27 { data_type => "varchar", is_nullable => 0, size => 128 },
28 "verified",
29 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
30 );
31 1 __PACKAGE__->set_primary_key("email_id");
32 1 __PACKAGE__->add_unique_constraint("local", ["local", "domain"]);
33 1 __PACKAGE__->might_have(
34 "email_verification_code",
35 "Test2::Harness::UI::Schema::Result::EmailVerificationCode",
36 { "foreign.email_id" => "self.email_id" },
37 { cascade_copy => 0, cascade_delete => 0 },
38 );
39 1 __PACKAGE__->might_have(
40 "primary_email",
41 "Test2::Harness::UI::Schema::Result::PrimaryEmail",
42 { "foreign.email_id" => "self.email_id" },
43 { cascade_copy => 0, cascade_delete => 0 },
44 );
45 1 __PACKAGE__->belongs_to(
46 "user",
47 "Test2::Harness::UI::Schema::Result::User",
48 { user_id => "user_id" },
49 { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
50 );
51  
52  
53 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-03-02 16:05:14
54 1 ▶use Test2::Harness::UI::UUID qw/uuid_inflate uuid_deflate/;
Subroutine BEGIN: called CC=1 SCAR=0.0
55 1 __PACKAGE__->inflate_column('email_id' => { inflate => \&uuid_inflate, deflate => \&uuid_deflate });
56 1 __PACKAGE__->inflate_column('user_id' => { inflate => \&uuid_inflate, deflate => \&uuid_deflate });
57 # DO NOT MODIFY ANY PART OF THIS FILE
58  
59 1 1;
« lib/Test2/Harness/UI/Schema/MySQL/CoverageManager.pm ↑ Summary lib/Test2/Harness/UI/Schema/MySQL/EmailVerificationCode.pm »