Fast/Base.pm

filter: Statementstmt 100% 18 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 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
« Fast/Profile/SQLite.pm ↑ Summary
1 package DBIx::Fast::Base;
2  
3 14 ▶use v5.38;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 14 ▶use Object::Pad 0.807;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 14 our $VERSION = '0.22';
7 14 ▶use Carp 'croak';
Subroutine BEGIN: called CC=1 SCAR=0.0
8 14 ▶use Scalar::Util 'weaken';
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 class DBIx::Fast::Base {
11 190 ▶ field $dbix :param :reader;
Subroutine dbix: called CC=1 SCAR=0.0
Pod documented
12  
13 ADJUST {
14 croak "DBIx::Fast instance required"
15 unless ref($dbix) && ref($dbix) eq 'DBIx::Fast';
16  
17 # Weaken the back-reference: every subsystem is owned by the parent
18 # DBIx::Fast (which holds it strongly), so keeping a strong $dbix here
19 # would form an A->B->A cycle and leak the whole handle graph. Mirrors
20 # DBIx::Fast::Profile::Base.
21 weaken($dbix);
22 }
23 14 }
24  
25 14 1;
26  
27 __END__
« Fast/Profile/SQLite.pm ↑ Summary