KiokuDB/TypeMap/Entry/DBIC/ResultSet.pm

filter: Statementstmt 100% 25 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod 0.0% 0 / 1 totaltotal 96.9% 32 / 33 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« KiokuDB/TypeMap/Entry/DBIC/ResultSource.pm ↑ Summary KiokuDB/Backend/DBI/Schema.pm »
1 package KiokuDB::TypeMap::Entry::DBIC::ResultSet;
2 7 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
3 7 $KiokuDB::TypeMap::Entry::DBIC::ResultSet::AUTHORITY = 'cpan:NUFFIN';
4 }
5 7 $KiokuDB::TypeMap::Entry::DBIC::ResultSet::VERSION = '1.23';
6 7 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 # ABSTRACT: KiokuDB::TypeMap::Entry for DBIx::Class::ResultSet objects
8  
9 7 ▶use JSON;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 7 ▶use Scalar::Util qw(weaken);
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 7 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 7 extends qw(KiokuDB::TypeMap::Entry::Naive);
15  
16 1 ▶sub compile_collapse_body {
Subroutine compile_collapse_body: called CC=1 SCAR=0.0
Pod undocumented
17 1 my ( $self, @args ) = @_;
18  
19 1 my $sub = $self->SUPER::compile_collapse_body(@args);
20  
21 1 ▶ return sub {
Subroutine __ANON__: called CC=1 SCAR=0.0
22 1 my ( $self, %args ) = @_;
23  
24 1 my $rs = $args{object};
25  
26 1 my $clone = $rs->search_rs;
27  
28 # clear all cached data
29 1 $clone->set_cache;
30  
31 1 $self->$sub( %args, object => $clone );
32 1 };
33 }
34  
35 7 __PACKAGE__->meta->make_immutable;
36  
37 # ex: set sw=4 et:
38  
39 7 __PACKAGE__
40  
41 __END__
« KiokuDB/TypeMap/Entry/DBIC/ResultSource.pm ↑ Summary KiokuDB/Backend/DBI/Schema.pm »