KiokuDB/TypeMap/Entry/Ref.pm

filter: Statementstmt 78.2% 18 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 85.7% 6 / 7 Podpod 0.0% 0 / 3 totaltotal 72.7% 24 / 33 CC 1 SCAR 1.8
CC
1
Cov
78%
__ANON__
2.0
compile_refresh
1.4
BEGIN
1.0
CRAP 1.2
« KiokuDB/LiveObjects/Guard.pm ↑ Summary KiokuDB/Backend/Serialize.pm »
1 package KiokuDB::TypeMap::Entry::Ref;
2 14 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 14 ▶no warnings 'recursion';
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 14 ▶use namespace::clean -except => 'meta';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 14 with qw(
9 KiokuDB::TypeMap::Entry
10 KiokuDB::TypeMap::Entry::Std::Compile
11 KiokuDB::TypeMap::Entry::Std::ID
12 );
13  
14 sub compile_collapse {
15 140 ▶ my ( $self, $reftype ) = @_;
Subroutine compile_collapse: called CC=1 SCAR=0.0
Pod undocumented
16  
17 140 return "visit_ref_fallback";
18 }
19  
20 sub compile_expand {
21 140 ▶ my ( $self, $reftype ) = @_;
Subroutine compile_expand: called CC=1 SCAR=0.0
Pod undocumented
22  
23 140 return "expand_object";
24 }
25  
26 sub compile_refresh {
27 140 ▶ my ( $self, $class, @args ) = @_;
Subroutine compile_refresh: called CC=1 SCAR=3.1
Pod undocumented
28  
29 return sub {
30 0 ▶ my ( $linker, $object, $entry ) = @_;
Subroutine __ANON__: not called CC=1 SCAR=6.9
31  
32 0 my $new = $linker->expand_object($entry);
33  
34 0 require Data::Swap;
35 0 Data::Swap::swap($new, $object); # FIXME remove!
36  
37 0 return $object;
38 140 };
39 }
40  
41 14 __PACKAGE__->meta->make_immutable;
42  
43 14 __PACKAGE__
44  
45 __END__
« KiokuDB/LiveObjects/Guard.pm ↑ Summary KiokuDB/Backend/Serialize.pm »