Async/ORM/Constraint.pm

filter: Statementstmt 40.0% 8 / 20 Branchbran n/a Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 20.0% 2 / 10 Podpod 0.0% 0 / 8 totaltotal 24.3% 10 / 41 CC 2 SCAR 9.3
CC
2
Cov
36%
fields
6.0
new
2.0
table
2.0
CRAP 2.5
« Async/ORM/Extension.pm ↑ Summary Async/Backoff.pm »
1 package Database::Async::ORM::Constraint;
2  
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 2 our $VERSION = '0.019'; # VERSION
7  
8 0 ▶sub new {
Subroutine new: not called CC=1 SCAR=6.9
Pod undocumented
9 0 my ($class, %args) = @_;
10 0 bless \%args, $class
11 }
12  
13 0 ▶sub table { shift->{table} }
Subroutine table: not called CC=1 SCAR=6.9
Pod undocumented
14 0 ▶sub name { shift->{name} }
Subroutine name: not called CC=1 SCAR=6.9
Pod undocumented
15 0 ▶sub type { shift->{type} }
Subroutine type: not called CC=1 SCAR=6.9
Pod undocumented
16  
17 0 ▶sub is_deferrable { shift->{deferrable} }
Subroutine is_deferrable: not called CC=1 SCAR=6.9
Pod undocumented
18 0 ▶sub is_deferred { shift->{initially_deferred} }
Subroutine is_deferred: not called CC=1 SCAR=6.9
Pod undocumented
19  
20 0 ▶sub fields {
Subroutine fields: not called CC=2 SCAR=17.9
Pod undocumented
21 0 my ($self) = @_;
22 0 ▶ map { $self->table->field_by_name($_) } ($self->{fields} //= [])->@*
Condition0%0/2
$self->{"fields"} //= []
l!l
00
MC/DC0%0/1
$self->{"fields"} //= []
$self->{"fields"}
Truth table0%0/2
A
A= $self->{"fields"}
Aresult
11
00
23 }
24  
25 0 ▶sub references {
Subroutine references: not called CC=1 SCAR=6.9
Pod undocumented
26 0 my ($self) = @_;
27 0 $self->table->schema->table_by_name($self->{references}{table});
28 }
29  
30 2 1;
31  
« Async/ORM/Extension.pm ↑ Summary Async/Backoff.pm »